Forum Moderators: open
parent.html
<html>
<head>
<title>Test</title>
<script type="text/javascript">
function OpenWindow(){
var winPop = window.open("child.html","winPop");
}
</script>
</head>
<body>
<form name="form1">
<input type="hidden" name="text1" value="" id="text">
<input type="button" name="button" value="Grab Info" onclick="OpenWindow()">
</form>
</body>
</html>
Here is the child:
<html>
<head>
<title>Test</title>
<script type="text/javascript">
function SendInfo(){
var txtVal = document.formPop.textPop.value;
window.opener.document.form1.text1.value = txtVal;
window.close();
}
</script>
</head>
<body>
<form name="formPop">
<input type="text" name="textPop">
<input type="button" name="button" value="Send Info" onclick="SendInfo()">
</form>
</body>
</html>
If i switch the input type to text it picks up the data. If I set it to hidden, it omits it. Any suggestions?