请问怎样才能让showmodaldialog的窗口自身装载新页面? add an iframe inside your dialog page and load the new page into that iframe 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1.<HTML><HEAD><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"></HEAD><script language=javascript>function OpenWindow(){ s1="<html><head><title>dome</title></head><body><h2>this is a example.</h2></body></html>" window.showModalDialog("about:" + s1) } </script><BODY><table><input type=button onclick=OpenWindow() value="Click it"></BODY></HTML> vxhelp:我要的是在自身页面装载新的页面,不要谈出新窗口。 在你打开的那个web对话框里用这样的文件:<html><title></title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"/><frameset rows="*,0" name="frameSetID" border="0"><frame src="xslitemSelect.asp"><frame src="about:blank"></frameset></html>在xslitemSelect.asp提交到_self就不会出现新窗口了! 谢谢你们,可是可不可以不用iframe或者frameset呢?谢谢!是啊,我就是要用script的方法,可是怎么用呢? 组织<a >默认打开href动作,请问如何作? window.open 打开窗口 处于 最上层? 用juery validation对checkbox验证 问一个正则的问题。有会的朋友,谢谢了! 文本框获取javascript中方法传递的值 怎么写js让用户拖动窗口 各位同行高手,一起来赚点外快吧! 100分,请教三个正则问题,在线等 为什么onSubmit事件返回false了提交还能继续? 怎样用javascript去掉浏览器中的工具栏、状态栏? 小问题,大学问,简单的让我怎么也想不通! onUnload为何IE下没有问题Netscape4.X下不起作用?
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<script language=javascript>
function OpenWindow()
{
s1="<html><head><title>dome</title></head><body><h2>this is a example.</h2></body></html>"
window.showModalDialog("about:" + s1)
}
</script>
<BODY>
<table>
<input type=button onclick=OpenWindow() value="Click it">
</BODY>
</HTML>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<frameset rows="*,0" name="frameSetID" border="0">
<frame src="xslitemSelect.asp">
<frame src="about:blank">
</frameset>
</html>在xslitemSelect.asp提交到_self就不会出现新窗口了!
是啊,我就是要用script的方法,可是怎么用呢?