Forum Moderators: open
Thanks in advance...I must just have the reference I tiny bit wrong.
The following data is located in a file named "test001.htm"
***********************************************************
<script>
function doit1() {
var new_window = "scrollbars,resizable,width=200,height=200,left=400,top=25";
OpenWindow = window.open("test002.htm", "remote", new_window);
}
</script>
<script>
function doit2() {
alert(new_window.document.myForm.myField.value);
}
</script>
<body>
<P><A href="javascript:doit1()"><STRONG>Open Window</STRONG></A></P>
<P><A href="javascript:doit2()"><STRONG>Get Tommy</STRONG></A></P>
The following data is located in test002.htm
********************************************
<form name="myForm" action="">
<input name="myField" TYPE="TEXT" VALUE="Tommy"><br>
<input name="Submit" TYPE="Submit" VALUE="Submit"><br>
</form>
So the following (untested) should work for you:
<script>
var Openwindow;function doit1() {
var wprops = "scrollbars,resizable,width=200,height=200,left=400,top=25";
OpenWindow = window.open("test002.htm", "remote", wprops);
}
</script>
<script>
function doit2() {
alert(OpenWindow.name);
alert(OpenWindow.document.forms["myForm"].myField.value);
}
</script>
<body>
<P><A href="javascript:doit1()"><STRONG>Open Window</STRONG></A></P>
<P><A href="javascript:doit2()"><STRONG>Get Tommy</STRONG></A></P>