JS模态对话框有关问题
JS模态对话框问题JScript codescript function OpenModalWin() {window.openernull//if the modalDi
JS模态对话框问题
JScript code<script> function OpenModalWin() { window.opener='null'; //if the modalDialog need para from the parentDialog //var obj=window.dialogArguments //you can test alert(obj.name); window.showModalDialog("Module/System/EditPwd.htm","parameter to modaldialog","dialogWidth=200px;dialogHeight=200px;scroll=no"); }</script>
通过模态对话框打开EditPwd.aspx(修改密码页面)
我在EditPwd.aspx页面点击按钮的时候还会弹出一个页面(EditPwd.aspx),为什么会弹出页面呢?
我用了iframe可以解决胜这个问题
但是我不想用iframe,有什么办法可以解决呢????
[解决办法]EditPwd.htm:
里的<header>里加上
<base target="_self"/>
[解决办法]或者用框架
window.showModalDialog("Module/System/main.htm",。。。
<frameset rows="0,*">
<frame src="about:blank" frameborder="0">
<frame src="EditPwd.aspx" frameborder="0">
</frameset>