I have a main window that submits a form to a website and opens up the results in a new window,
the action of the form is an external webpage. :
<form name="form1" method="post" target="_blank" action=" >
and I obviouslly have a submit button :
<input name="submit" type="submit" value="Submit">
However I want to communicate with this new window and change the URL of it after the page has been fully loaded,
automatically.
How do i reference the new window to do this?
-------------------------------------------------------------------------------------------------------------
I have tried doing this :
<input name="submit" type="submit" value="Submit" onsubmit"=newin()">
where newin is the following function :
function newin()
{
var new_window = window.open("}
I tried changing onsubmit="newin()" to onclick"=newin()" but it still did nothing. But I think this somehow conflicts with the form submit method? How do I name the externalpage.asp window as a variable so I can communicate with it and send a URL to it?
Thanks,
the action of the form is an external webpage. :
<form name="form1" method="post" target="_blank" action=" >
and I obviouslly have a submit button :
<input name="submit" type="submit" value="Submit">
However I want to communicate with this new window and change the URL of it after the page has been fully loaded,
automatically.
How do i reference the new window to do this?
-------------------------------------------------------------------------------------------------------------
I have tried doing this :
<input name="submit" type="submit" value="Submit" onsubmit"=newin()">
where newin is the following function :
function newin()
{
var new_window = window.open("}
I tried changing onsubmit="newin()" to onclick"=newin()" but it still did nothing. But I think this somehow conflicts with the form submit method? How do I name the externalpage.asp window as a variable so I can communicate with it and send a URL to it?
Thanks,