Creating Windows : Introduction « Window « JavaScript Tutorial






The open method can be used to create any primary or secondary window.

window.open("web.html", "newWin", "resizeable,menubar,toolbar");

This creates a window that is resizable, contains a menu bar, and has a toolbar.

The "web.html" is the file that will open in the newly created window.

"newWin" represents the name of the window object.

Other features include outerHeight, outerWidth, innerHeight, innerWidth, alwaysRaised, alwaysLowered, location, screenY, and screenX.

The features are specified in the parameters of the open function.

19.1.Introduction
19.1.1.Windows in Action
19.1.2.Creating Windows
19.1.3.Parent Code for Window Example
19.1.4.Window Object Properties Array