========opennewwindow.asp:
<form name="chatlogin" action="openWin.html"  method="post" target="chat" >
<input type="hidden" name="USER" value="a">
<input type="hidden" name="PASS" value="a">
</form>
<script>
 var chat = window.showModelessDialog("","chat","dialogWidth=680px;dialogHeight=480px;dialogLeft=200;dialogTop=100;center=yes;help=no;resizable=no; status=no;scroll=no");
document.chatlogin.submit();
</script>========openWin.html:
<html>
<head>
<base target="_self">
</head>
只想在showModelessDialog中打开这个窗口,却总是又跳出一个IE窗口。郁闷死了。
</html>============
代码如上,我需要用Form将User和Pass传递给弹出窗口,用window.open就可以实现,但会被屏蔽掉。想用showModelessDialog的时候,为什么实现不了?我在新开页里加入<base target="_self">了,可还是不行,请教各位大哥哥了,谢谢你们了。
在线等待