I am passing a value through query string to a popup and then trying to pass it back to the main page... I store the value in a hidden input box
<input type="text" name="FromZip" id="FromZip" value="<% response.write(Request.QueryString("txtZipFr")) %>" />
and am passing it back through query string to the main page with
<script language="JavaScript" type="text/javascript">
//<!--
//opener.location.reload(true);
//window.opener.location='bl_zip_sngl.asp?
var x;
x = document.getElementsByName("FromZip").value;
alert(x);
window.opener.location='bl_zip_sngl.asp?txtZipFr=' +x
self.close();
// -->
</script>
It gives me undefined as the output, but when I do it like this
<script language="JavaScript" type="text/javascript">
//<!--
//opener.location.reload(true);
//window.opener.location='bl_zip_sngl.asp?
var x;
document.getElementsByName("FromZip").value = 79797; //Only difference
x = document.getElementsByName("FromZip").value;
alert(x);
window.opener.location='bl_zip_sngl.asp?txtZipFr=' +x
self.close();
// -->
</script>
it at least returns a real value. Unfortunately I need to dynamically populate the box with what the user originally typed in.