`window.opener.document.formanme.iunpt.value="xxx"

解决方案 »

  1.   

    第一个页面FORM1第二个页面,在第一个页面里写
    document.form1.iunpt.value=window.opener.document.form2.iunpt.value
    不好用.
    另外:第二个页面不是用window.open()打开的
      

  2.   

    第一个页面FORM1第二个页面FORM2,在第一个页面里写
    document.form1.iunpt1.value=window.opener.document.form2.iunpt2.value不好用.
    另外:第二个页面不是用window.open()打开的 
     
      

  3.   

    第一种值类型数据的传递中,在callee.htm页面中只能读取caller.htm页面的传递数据。当需要对caller.htm页面的传递内容进行修改时,就需使用到数组引用类型的传递方式。首先,在caller.htm页面中输入以下代码: <INPUT TYPE="button" VALUE="创建模态对话框" onclick="fnOpenModal()"> <br><br> <INPUT TYPE="button" VALUE="创建非模态对话框" onclick="fnOpenModeless()">
     <script language="javascript"> 
    <!-- var a = new Array; a[0]="first"; a[1]="second"; a[2]="third"; 
    function fnOpenModal()
    { window.showModalDialog("callee.htm",a) } 
    function fnOpenModeless()
    { window.showModelessDialog("callee.htm",a) } 
    // --> </script>  然后在callee.htm页面中输入以下代码: 
    <SCRIPT LANGUAGE="JavaScript"> 
    <!-- a = dialogArguments; alert(a); a[0] = "fourth"; // --> 
    </SCRIPT>