在网上找了很多方法,总是不行。我的代码如下:
父窗体window.showModalDialog("Child.aspx",window,"dialogWidth:300px;dialogHeight:400px;center:yes;scroll:yes;");子窗体window.returnValue=document.getElementById("hdUserName").value;
window.close();
关闭子窗体的时候怎样才能不弹出确认对话框呢?