Javascript, Netscape, and Pop Up Windows
Hi,
I'm trying to get a pop up window to appear from another pop up window. I'm using the typical window.open command, but it keeps opening the second pop up window inside the first.
Any idea how to get the second pop up window to pop up?
Thanks,
Mark
Webmaster
http://www.lancerforums.com
Adrian J. Moreno posted this at 19:47 — 10th August 2001.
They have: 19 posts
Joined: Jul 2001
If you're using the same window name in the second pop-up, that would cause the second to replace the first in the same window. Make sure that the second pop-up function uses a differecnt window name and you should get the correct results.
LancerForums posted this at 20:52 — 10th August 2001.
They have: 27 posts
Joined: Aug 2001
Ok, in the first page where the initial pop up occurs I use this function:
function popUp(theURL,size){
evoWin=window.open(theURL,'',size);
}
In the pop up window I use this function:
function popUp(theURL,size){
imageWin=window.open(theURL,'',size);
}
I use OnClick= to in the href tag to call the function.
It still doesn't work, though. In NS4 the second pop up still opens in the first.
What am I doing wrong?
Mark
Webmaster
http://www.lancerforums.com
Suzanne posted this at 22:00 — 10th August 2001.
She has: 5,507 posts
Joined: Feb 2000
That's where the new window is named.
Simply give each link a new name inbetween those single quotes, using no spaces, and it should work.
P.S. zerocattle.com/examples/popUp.html may be of help -- better function, tutorial links, et cetera.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.