我一直在尝试从弹出窗口中设置父表单的值window.opener。但是,window.opener在执行时未定义。
主窗口:
showmodaldialog("popup.aspx", null, window styles with width and height);
弹出窗口:
window.opener.document.getElementById("#hidvalue").value = "hello";
我一直在尝试从弹出窗口中设置父表单的值window.opener。但是,window.opener在执行时未定义。
主窗口:
showmodaldialog("popup.aspx", null, window styles with width and height);
弹出窗口:
window.opener.document.getElementById("#hidvalue").value = "hello";