[Javascript] open two new windows

Dan Costea costea at ssi-schaefer-noell.com
Mon Feb 18 01:49:32 CST 2002


Any window has an ID (the second parameter of the window.open). If you want
to always open a NEW window, you can use:

window.open(window_name,"_blank","menubar=no,toolbar=yes,width=200,height=50
5,top=100,left=250");

If you want to open an link over an already opened window, you can use the
ID of the window already opened (you used the "concat" ID). Try
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref
erence/methods/open_0.asp to see more about window.open.

Dan.



> Hi,
>    (This may sound confusing)I have a browser window that will open a new
> window when the user first comes to it. On the base window (the first
window
> opened) there is a link that will open a new window, but I want this link
to
> open in a third window, I'm using this function:
>
> function openwindow(window_name) {
> var new_window;
> new_window =
> window.open(window_name,"contact","menubar=no,toolbar=yes,width=
> 200,height=505,top=100,left=250");
> }
>
> When I click the link on the base window, I'ts not opening in a third
window
> but opening in the second window that was originally opened when the user
> first comes to the site. Does anyone know a way to open a third window up?
>
> Regards,
> Andrew






More information about the Javascript mailing list