网页模态对话框:
showModalDialog('condition.htm','','dialogWidth: 480px; DialogHeight: 360px; status: no; help: no');返回值: window.returnValue

解决方案 »

  1.   

    多谢黄帮猪:)能否说明白些。模式对话框要返回值,在condition.htm里面该如何写。
    在我的页面里面又该如何获得返回值,可否给个小小例子
      

  2.   

    var str = showModalDialog('condition.htm','','dialogWidth: 480px; DialogHeight: 360px; status: no; help: no');
    alert(str)Condition.htm里写﹕
    Window.returnValue=”返回值”
      

  3.   

    上面有个问题我不大明白,返回值是什么时候得到的?
    我觉得这样也可以,在主调页面中:
    var winPopup;
    winPopup=window.open("searchpage.asp","search","XXX");
    然后在searchpage.asp中:
    opener.location="what you want"
    even:opener.document.all.aControl.value=something
      

  4.   

    赞同 tsstudio(超级菜鸟)  用层来做一个模拟的自定义的对话框
      输入的条件都可以是runat=server的控件
      这样不必麻烦返回值!