PDA

View Full Version : Switching Window Control



mr_mak
Jun 23rd, 2002, 07:26 AM
A page has a link which when clicked creates a pop up window having two buttons: Continue and Cancel.

When the operator selects continue, I want to direct them to a URL which is displayed in the page that created the pop up window. I do not wish to use the confirm function to do this.

Can anyone help ?

joh6nn
Jun 23rd, 2002, 02:17 PM
//main window:

<a href="newWindow.html" target="popup" onclick="window.open('newWindow.html'); return false;">click click</a>

//popup window (newWindow.html)
<form>
<input type="input" value="continue" onclick="window.opener.location='someotherpage.html'; self.close();">
<input type="input" value="cancel" onclick="self.close();">
</form>