window.open()

JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax

window.open(pageURL, name, parameters)

Description

The open() method of the Window object creates a new instance of a window. It loads the pageURL passed to the method in a window based on the parameters specified. The ACTION attribute of the <form> tag and the TARGET attribute of the <a> tag can reference the window by the name passed.

Most of the parameters passed, which are listed without spaces and commas, are toggled on and off by setting them to yes or no. It is also possible to use 1 or 0 to turn these features on or off. Either way, you should be consistent across each of the options. Table 7.50 has the different parameters that can be passed and how ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.