Window feature list (Definition)

The list of available features that a window.open() method can apply.

The feature list defines how the new window that is to be created will appear. For example, you can control the appearance of the various window adornments.

The features are generally presented as a name-value pair, thus:

name=value

The features are either available for use as simple switches and will control the functionality depending on whether they are present or not. Some also support an optional value while others require a mandatory value. Features requiring a mandatory value are generally numeric in nature.

The switching values may be "yes" or "1" to enable a feature and "no" or "0" to disable a feature. Switching features can be used with no associated value. This will generally default to "yes".

As you would expect, MSIE and Netscape Navigator support a completely different and incompatible set of features. Even controlling the same attribute of the window may require different feature names to be used (dor example width in MSIE and innerWidth/outerWidth in Netscape Navigator).

The feature names are case insensitive but good style dictates that they are specified as shown in the table.

Here is a summary of the available features of a window.open() method:

FeatureValueNNavMSIEDescription
alwaysLowered-4NoThis dictates that a window should always be at the bottom of the stack of windows.
alwaysRaised-4NoThis dictates that a window should always be at the top of the stack of windows.
channelMode-No4Controls whether the window is presented in channel mode.
dependentYes/No4NoIf a window is not dependent, it can survive after its creator has been closed.
directoriesYes/No4NoControls the appearance of the Netscape Navigator personal toolbar.
fullscreen-No4On the Windows platform, MSIE will fill the screen with the window.
heightNumber24This will set the window to the height value.
hotkeysYes/No4NoSetting this value to "no" will disable most keyboard shortcuts apart from the quit option.
innerHeightNumber4NoThis will set the window to the height value measured inside the window border.
innerWidthNumber4NoThis will set the window to the width value measured inside the window border.
leftNumber44The left edge of the window will be positioned N pixels from the left edge of the screen.
locationYes/No24The location bar is visible.
menubarYes/No2NoThe menubar is fully populated with menus and menu items.
outerHeightNumber4NoThis will set the window to the height value measured outside the window border.
outerWidthNumber4NoThis will set the window to the width value measured outside the window border.
resizableYes/No24The window displays resize facilities according to the switch value.
screenXNumber4NoAn alternative name for the left feature.
screenYNumber4NoAn alternative name for the top feature.
scrollbarsYes/No24Scroll bars are explicitly displayed according to the switch value.
statusYes/No24The window displays a status bar according to the switch value.
toolbarYes/No24The window displays a toolbar according to the switch value.
topNumber44The top edge of the window will positioned N pixels from the top edge of the screen.
widthNumber24This will set the window to the width value.
z-lock-4NoThis dictates that a window should always be at the same z-position in the stack of windows.

The following z-order feature switch values require the UniversalBrowserWrite privilege to be enabled when they are used in Netscape Navigator:

Warnings:

See also:Window furniture, Window.open()