子父窗口数据传送问题
1.htm
<HTML>
<HEAD>
<TITLE> father </TITLE>
</HEAD>
<SCRIPT LANGUAGE= "JavaScript ">
<!--
function openSubWindow(){
window.open( "2.htm ", "mywin ", "menubar=no,width=100,height=400,resizeable=yes ");
}
//-->
</SCRIPT>
<BODY>
<FORM METHOD=POST name=abc>
<INPUT TYPE= "text " NAME= "text " onclick= "openSubWindow(); ">
</FORM>
</BODY>
</HTML>
2.htm
<HTML>
<HEAD>
<TITLE> childer </TITLE>
</HEAD>
<SCRIPT LANGUAGE= "JavaScript ">
<!--
function CloseSelf(){
//window.opener.location.href = window.opener.location.href;
window.opener.document.abc.text.value=window.document.all.abc.text.value;
window.close();
}
//-->
</SCRIPT>
<BODY>
<FORM METHOD=POST name=abc>
<table border= "1 " width= "100% " cellspacing= "0 " cellpadding= "0 " style= "border-collapse: collapse ">
<tr> <td> <INPUT TYPE= "text " onclick= "CloseSelf(); " NAME= "text " value= "1111 " size= "10 "> </td> </tr>
<tr> <td> <INPUT TYPE= "text " onclick= "CloseSelf(); " NAME= "text " value= "2222 " size= "10 "> </td> </tr>
<tr> <td> <INPUT TYPE= "text " onclick= "CloseSelf(); " NAME= "text " value= "3333 " size= "10 "> </td> </tr>
<tr> <td> <INPUT TYPE= "text " onclick= "CloseSelf(); " NAME= "text " value= "4444 " size= "1