Parent Window have this Function
such as
function SetNewValue(thisValue){
 var theform=document.form1;
 theform.UserName.value=thisValue;
}
Child Window call this Function when Closed self
<body onunload="Javascipt:window.opener.SetNewValue(document.form2.UserName.value);">

解决方案 »

  1.   

    sub document_onload()
        FatherFrameName.FormName.InputName.Value="XXXX"
    end sub
      

  2.   

    demo.htm<a href="#" onclick="window.open('a.htm')">a</a>
    <input type="text" name="txt">
    a.htm<body onunload="CloseOpen()">
    <script>
    function CloseOpen() {
        if(event.clientX<=0 && event.clientY<0) {
        window.opener.document.all.txt.value=document.all.son.value
        }
    }
    </script> 
    <input type="text" name="son">
      

  3.   

    parent.window.opener.textname.value=document.all.textname.value