有ID你就用document.getElementById('hiddenParam')啊

解决方案 »

  1.   

    在子窗口怎么用document.getElementById('hiddenParam')啊?这是父窗口的控件
      

  2.   

    这样试试
    父窗口:
    <div id="test"></div>
    <input type="button" onclick="op()" value="xxx" />
    <script>
    function op(){
    window.showModalDialog('pop_test.html',document);
    }
    </script>
    子窗口:
    <script>
    function cls(){
            var doc = window.dialogArguments
    var temp1 = doc.createElement("input"); 
       temp1.type = "text"; 
       temp1.name = 'xxx';
       temp1.value = "XXX"; 
    doc.getElementById('test').appendChild(temp1);
    window.close();
    }
    </script>
    <input type="button" onclick="cls()" value=" close " />