NN 2, IE 3
You want to open a separate subwindow based on scripted action in the main window.
To generate a new window, use the
method, passing parameters for the
(absolute or relative) URL of the page to occupy the new window, a
text name for the window, and a comma-delimited string of parameters
that specify the window's physical characteristics.
var newWind = window.open("subDoc.html", "subWindow", "status,menubar,height=400,width=300");
Preserve the value returned by the method (a reference to the subwindow object) in a global variable if you intend to reference the subwindow from the main window's scripts in other functions later on.
If you are not loading an existing document (or one returned by a
server process) into the new window, pass an empty string as the
first parameter to open the window with a blank content region (so
that you can later write dynamic content to it). The window name in
the second parameter is the same kind of name that a hyperlink or
target attribute points
to. You should always provide a unique name, to keep multiple
subwindows from accidentally colliding with each other.
Probably the trickiest part of creating a new window is defining the third parameter, a comma-delimited string of window properties. If you omit the third parameter altogether, the browser creates a window of the same dimensions and characteristics as the one that it would create if the user were to ...