Changes

JavaScript Window Object

712 bytes added, 18:24, 9 May 2007
no edit summary
== Opening Browser Windows using JavaScript ==
 
A new browser window can be opened from a JavaScript script using the ''open()'' method of the ''window'' object. The syntax for opening a new window is as follows:
 
<pre>
 
newWindowObj = window.open("URL", "WindowName", "feature, feature, feature ... ");
 
</pre>
 
The following provides an explanation of the arguments passed through to the ''open()'' method:
 
* '''URL''' - Specifies the URL of the web page to be loaded into the new window. If no URL is specified a blank window is loaded.
 
* '''WindowName''' - Specifies the window name and is used to refer to the window.
 
* '''features''' - A comma separated list of features that allow you to customize the appearance of the window. Options are:
 
width