应该用window.opener
下面给你一个例子:
Index.asp页:
<form id="Form" name="Form" method="post" action="">
<input name="Info" type="text" id="Info" />
<input name="Button" type="button" id="Button" value="测试" onclick="window.open('Win.asp')" />
</form>
Win.asp页:
<script language="javascript">
<!--
function aa(){
var l,str;
l = checkbox.length;
str = "";
for(var i = 0; i < l; i++){
if(checkbox[i].checked)
str = str +","+ checkbox[i].value;
}
str = str.substring(1,str.length);
window.opener.document.Form.Info.value=str;
window.close();
}
//-->
</script>
<body>
<input type="checkbox" name="checkbox" id="checkbox" value="1" />
1
<input name="checkbox" type="checkbox" id="checkbox" value="2" />
2
<input name="checkbox" type="checkbox" id="checkbox" value="3" />
3
<input name="checkbox" type="checkbox" id="checkbox" value="4" />
4
<input name="checkbox" type="checkbox" id="checkbox" value="5" />
5
<input type="submit" name="Submit" value="提交" onclick="aa()" />
</body>
楼主你看看是不是你想要的效果