网页模态对话框:
showModalDialog('condition.htm','','dialogWidth: 480px; DialogHeight: 360px; status: no; help: no');返回值: window.returnValue
showModalDialog('condition.htm','','dialogWidth: 480px; DialogHeight: 360px; status: no; help: no');返回值: window.returnValue
在我的页面里面又该如何获得返回值,可否给个小小例子
alert(str)Condition.htm里写﹕
Window.returnValue=”返回值”
我觉得这样也可以,在主调页面中:
var winPopup;
winPopup=window.open("searchpage.asp","search","XXX");
然后在searchpage.asp中:
opener.location="what you want"
even:opener.document.all.aControl.value=something
输入的条件都可以是runat=server的控件
这样不必麻烦返回值!