100分~!求解~!文本框赋值问题~!在线等~!
页面1:
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<script language="javascript">
<!--
function openChild(){
var aa = window.showModalDialog("child.htm",window,"dialogWidth:335px;status:no;dialogHeight:300px");
if(aa != null)
document.getElementById("txt11").value = aa;
}
//-->
</script>
</HEAD>
<BODY>
返回的值:<input id="txt11" type="text"><br/>
222:<input id="txt12" type="text">
<input type ="button" value="openChild" onclick="openChild()">
</BODY>
</HTML>
页面2:child.htm
<HEAD>
</HEAD>
<BODY>
<input id="txt2" type="text">
<input id="txt3" type="text">
<input type ="button" value="关闭切返回值" onclick="retrunValue()">
</BODY>
</HTML>
<script language=javascript>
function retrunValue()
{
var s = document.getElementById("txt2").value;
window.returnValue=s;
window.close();
}
//-->
</script>
将页面child.htm中的txt2,txt3文本框
赋值到 页面1的:txt11,txt12 中去~!应如何做啊~!
子窗口两个文本框,赋值到父窗口的相对应的两个文本框中怎么做啊??请高手指教~!