请问怎样才能让showmodaldialog的窗口自身装载新页面?

飞羽 2002-02-03 06:54:49
请问怎样才能让showmodaldialog的窗口自身装载新页面?
...全文
90 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
飞羽 2002-02-04
  • 打赏
  • 举报
回复
谢谢你们,可是可不可以不用iframe或者frameset呢?谢谢!
是啊,我就是要用script的方法,可是怎么用呢?
vxhelp 2002-02-04
  • 打赏
  • 举报
回复
你可以用js实现的,
孟子E章 2002-02-04
  • 打赏
  • 举报
回复
在你打开的那个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就不会出现新窗口了!
飞羽 2002-02-04
  • 打赏
  • 举报
回复
vxhelp:我要的是在自身页面装载新的页面,不要谈出新窗口。
飞羽 2002-02-04
  • 打赏
  • 举报
回复
有人知道吗?
vxhelp 2002-02-04
  • 打赏
  • 举报
回复
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>

孟子E章 2002-02-04
  • 打赏
  • 举报
回复
frameset也可
飞羽 2002-02-04
  • 打赏
  • 举报
回复
还有别的办法吗?
karma 2002-02-03
  • 打赏
  • 举报
回复
add an iframe inside your dialog page and load the new page into that iframe

87,996

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧