if (window.showModalDialog("ChangeXingSha.aspx?fangxiang=l&x=" + x + "&y=" + y, "比", "dialogWidth:510px;dialogHeight:345px;scroll:no;status:no;dialogLeft=" + x + ";dialogTop=" + y + ";")) { document.forms[0].action = window.location.href; document.forms[0].submit(); //SubVs(); }如上面所示。最好可以做到根据模式窗口的returnValue来判断是否执行。
str =window.showModalDialog("modal.htm",,"dialogWidth=200px;dialogHeight=100px");
alert(str);
document.forms[0].action = window.location.href;
document.forms[0].submit();
//SubVs();
}如上面所示。最好可以做到根据模式窗口的returnValue来判断是否执行。
关闭之前运行
window.returnValue=true或者false就好了.
如window.showModalDialog("b.html", window.document);var parentDoc = window.dialogArguments;