如何在两个页面中传递两个参数? 在线等待 急急急急急急急急急急急!!!!
如何在两个页面中传递两个参数?
test1.htm 中有两个 textbox: code1 code2
如何把 test2.htm 中的的两个参数传递回 test1.htm 赋给 code1 code2 ???
test1.htm
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script lauguage=javascript>
function selecthy(ctrlobj,ctrlobj2) {
newWINwidth = 210 + 4 + 18;
retval = window.showModalDialog("test2.htm", "", "dialogWidth:400px; dialogHeight:430px; dialogLeft:100px; dialogTop:0px; status:no; directories:yes;scrollbars:no;Resizable=no; " );
if( retval != null ) {
ctrlobj.value = retval;
ctrlobj2.value = retval;
}
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form name="form1" method="post" action="">
<input type="text" name="code1" readonly=true >
<input type="text" name="code2" onclick='selecthy(code1,code2);return false' readonly=true >
</form>
</body>
</html>
test2.htm
function getbm(code1,code2){
parent.window.returnValue = code1;
parent.window.returnValue = code2; ?????
parent.window.close();
}
<td width="25%" onmouseover=mOvr(this,'') onmouseout=mOut(this,'') onclick=getbm("code1","code2")></td>