Forum Moderators: open
This is declared in the "features" string for the window.open() method. You need four parameters (to cover both IE and Netscape.) To open a new pop-up positioned at 150, 100 the code would be:
window.open(url,windowname,www,hhh,left=150,top=100,screenX=150,screenY=100)
(edited by: tedster at 6:41 am (utc) on Feb. 11, 2002)
<added> Also, your first pop-up may dive to the bottom of the window stack and get lost under the original main window. That's a problem I have yet to solve.</added>
[perl]
newwin = window.open(url,windowname,www,hhh,left=150,top=100,screenX=150,screenY=100)
newwin.focus();
[/perl]
If you already have a window named windowname it will now jump back to the front again.
HTH.
Also, your first pop-up may dive to the bottom of the window stack and get lost under the original main window.
I have not been able to make gethan's solution to this to work consistently.
But I've never had any problem if I put the following in the code for the new window's own page: