Click to See Complete Forum and Search --> : How to open a window in ....


thenetfreaker
12-05-2003, 01:02 AM
If i open a popup window, how can i make it also automatically open a link in that popup ? :confused:

Gollum
12-05-2003, 01:49 AM
Two of the most obvious ways spring to mind...

using JavaScript, you put the URL as the first argument to window.open:
window.open("www.somewhere.com", "popupname", etc);

or, using a link with a target...
<a href="www.somewhere.com" target="popupname">Click here</a>

thenetfreaker
12-05-2003, 01:58 AM
no, i meant open a link in a popup[whick is the simple part],
and then, open a link in the opened page in the popup window [but doing that not in the script of the popup, but in the script of the main page]

Gollum
12-05-2003, 02:38 AM
I see.
Well, like I mentioned in your other thread on this subject (http://forums.webdeveloper.com/showthread.php?s=&threadid=22869) you can't do this for security reasons.