PDA

View Full Version : Two pop ups with one click - any ideas?


webarrow
07-20-2002, 12:38 AM
Hello, can someone help me out.

I need a window to pop up and load a url and the parent window to load another. This has to be done with one click.

Ex.
A visitor clicks on a link that says "Enter Here" once the link has been clicked a window pops up and loads the parent window loads a different address.

I've tried to manipulate onclick and I just can't get it. Please help me.

PS.
onload and onunload can not be used.

x_goose_x
07-20-2002, 12:43 AM
<input type="button" value="Enter" onclick="window.open('pop.htm','title',''); window.location.replace('main.htm');">

webarrow
07-20-2002, 04:19 AM
Thanks :thumbsup:, I'll probably use the button if I can't do it with a link. You don't know anyway to do it using a normal text link do you?

-Greg

x_goose_x
07-20-2002, 04:50 AM
<a href="#" onclick="window.open('pop.htm','title',''); window.location.replace('main.htm');">Enter</a>