showModalDialog的问题?高手也不一定会哦! try:showModalDialog("1.html","aa","dialogWidth:200px"); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 不能够这样做,showModalDialog的意思是打开一个对话框,当然不能在自己的窗体里面链接了,我没有见过这样的要求. 做一个过渡页面,在页面里嵌入一个iframe,宽高都为100%,src为你目标页面,只要改变这个iframe的src就可以在同一窗口显示不同页面了 你去http://www.cjol.com看看吧,那里用的方法不错 showModalDialog中点确定按钮提交,总会出现一个新的页面,如何让其不出现 --------------------------------------------------------------- 办法: window.showModalDialog("xxx.htm") xx.htm ==================== <frameset rows="0,*"> <frame src="about:blank"> <frame src="xxx.asp"> </frameset> xxx.asp ========= <form target="_self" method=post> 同意gaofaq(杀猪的),我就是这样做的 cjol的用法就是被showModalDialog打开的的页面包含一个框架,框架里面的页面是不收showModalDialog限制了,和普通的页面操作是一样的 <script>window.name="a"</script><a href="#" target="a">这样就可以 用<iframe>来控制就可以了。 littleboys(飞龙) okwindow.showModalDialog("xxx.htm") xx.htm ==================== <frameset rows="0,*"> <frame src="about:blank"> <frame src="xxx.asp"> </frameset> 可以不加<form target="_self" method=post> 如何获得input中password的密码输入的字符串的个数? 小弹窗怎么做 文本框验证,只能输入字母开头 如何使用as文件? 网页切割 请教各位大侠一个js操作word的问题!!!! 救命呀!浏览器不能随便关呀!可是它不听话呀! VBScript里的form 表单属性判断问题??? 我利用cookie传递汉字信息,但在回显汉字时出现了”乱码“,如何解决,小弟急用,请大侠快进!!!!!!!!!!!!!!!! js eval 报错缺少“;” 这个函数怎么写 如何修改IE状态栏进度条指示的的框架?
---------------------------------------------------------------
办法:
window.showModalDialog("xxx.htm")
xx.htm
====================
<frameset rows="0,*">
<frame src="about:blank">
<frame src="xxx.asp">
</frameset>
xxx.asp
=========
<form target="_self" method=post>
<a href="#" target="a">
这样就可以
window.showModalDialog("xxx.htm")
xx.htm
====================
<frameset rows="0,*">
<frame src="about:blank">
<frame src="xxx.asp">
</frameset>
可以不加
<form target="_self" method=post>