Name
Window.open( ): open a new browser window or locate a named window — JavaScript 1.0:
Synopsis
window.open(url,name,features,replace)
Arguments
-
url An optional string that specifies the URL to be displayed in the new window. If this argument is omitted, or if the empty string is specified, the new window does not display a document.
-
name An optional string of alphanumeric and underscore characters that specifies a name for the new window. This name can be used as the value of the
targetattribute of<a>and<form>HTML tags. If this argument names a window that already exists, theopen( )method does not create a new window, but simply returns a reference to the named window. In this case, thefeaturesargument is ignored.-
features A string that specifies which features of a standard browser window are to appear in the new window. The format of this string is specified in the Window Features section. This argument is optional; if it is not specified, the new window has all the standard features.
-
replace An optional boolean argument that specifies whether the URL loaded into the window should create a new entry in the window’s browsing history or replace the current entry in the browsing history. If this argument is
true, no new history entry is created. Note that this argument is intended for use when changing the contents of an existing named window.
Returns
A reference to a Window object, which may be a newly
created or an already existing one, depending on the
name argument. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access