window.outerWidth

JavaScript1.2+ Nav4+ Syntax

							window.outerWidth

Description

The outerWidth property of the Window object references the pixel width of the browser's frame. This includes any of the toolbars or other "chrome" that make up the frame itself.

Example

Listing 7.566 has a button that, when clicked, opens up a second, smaller window. The outerWidth property is written to this new window.

Listing 7.566 Using the outerWidth Property
 <html> <head> <script language="JavaScript1.2"> <!-- Hide // Define a function to open a small window function openWin(){ // Create variables to hold the various options that can be set // when a new Window instance is created. var myBars = 'directories=no,location=no,menubar=no,status=no'; myBars ...

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.