Try:
window.showModalDialog(sURL,vArguments)
                            ~~~~~~~~~~

解决方案 »

  1.   

    请问net_lover,如果我要取form1.text1.value的话,vArguments应该怎么写?
      

  2.   

    <body onload="ts()">
    <form name=f>
    <input name=txt value="Test">
    </form>
    <script>
    function ts(){
    var url="1.htm?" + document.f.txt.value
    window.showModalDialog(url)
    }
    </script>1.htm
    ==========================<body>
    <script>
    var str = window.location.search
    str = str.substring(1,str.length)
    alert(str)
    </script>
      

  3.   

    注意:用文件协议访问返回空,必须用htttp://访问