Package | cssom.view |
Interface | public interface WindowView |
Implementors | Window |
Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Some browser compatibility information was obtained via Quirksmode.
Some browser compatibility information was obtained via Aptana.
See also
Property | Defined By | ||
---|---|---|---|
CSSOM View innerHeight : Number [read-only]
Height of the browser window viewport including, if rendered, the horizontal scrollbar. | WindowView | ||
CSSOM View innerWidth : Number [read-only]
Width of the browser window viewport including, if rendered, the vertical scrollbar. | WindowView | ||
CSSOM View media : Media [read-only]
Returns an Media object. | WindowView | ||
CSSOM View outerHeight : Number [read-only]
Gets the height of the outside of the browser window. | WindowView | ||
CSSOM View outerWidth : Number [read-only]
Gets the width of the outside of the browser window. | WindowView | ||
CSSOM View pageXOffset : Number [read-only]
Returns the number of pixels that the document has already been scrolled horizontally. | WindowView | ||
CSSOM View pageYOffset : Number [read-only]
Returns the number of CSS pixels the user has scrolled towards the bottom within the viewport. | WindowView | ||
CSSOM View screen : Screen [read-only]
Returns a reference to the screen object associated with the window. | WindowView | ||
CSSOM View screenX : Number [read-only]
Returns the horizontal distance of the left border of the user's browser from the left side of the screen. | WindowView | ||
CSSOM View screenY : Number [read-only]
Returns the vertical distance of the top border of the user's browser from the top edge of the screen. | WindowView |
CSSOM View innerHeight | property |
innerHeight:Number
[read-only] Product Versions : | 5.5 6.0 7.0 8.0 as IE7 8.0 as IE8 2.0 3.0 3.1b 3.0 3.1 4.0b 1.0 2.0 9.62 10.0a |
Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Height of the browser window viewport including, if rendered, the horizontal scrollbar.
Note: The innerHeight property will be supported in any window object like a window, a frame, a frameset or a secondary window.
public function get innerHeight():Number
See also
var intFrameHeight = window.innerHeight; // or var intFrameHeight = self.innerHeight; // will return the height of the frame viewport within the frameset var intFramesetHeight = parent.innerHeight; // will return the height of the viewport of the closest frameset var intOuterFramesetHeight = top.innerHeight; // will return the height of the viewport of the outermost frameset
CSSOM View innerWidth | property |
innerWidth:Number
[read-only] Product Versions : | 5.5 6.0 7.0 8.0 as IE7 8.0 as IE8 2.0 3.0 3.1b 3.0 3.1 4.0b 1.0 2.0 9.62 10.0a |
Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Width of the browser window viewport including, if rendered, the vertical scrollbar.
Note: The innerWidth property does not include the sidebar. So when the sidebar is expanded, the innerWidth property value diminishes.
Note: The innerWidth property will be supported in any window object like a window, a frame, a frameset or a secondary window.
public function get innerWidth():Number
See also
var intFrameWidth = window.innerWidth; // or var intFrameWidth = self.innerWidth; // will return the width of the frame viewport within the frameset var intFramesetWidth = parent.innerWidth; // will return the width of the viewport of the closest frameset var intOuterFramesetWidth = top.innerWidth; // will return the width of the viewport of the outermost frameset
CSSOM View media | property |
media:Media
[read-only] Product Versions : | 5.5 6.0 7.0 8.0 as IE7 8.0 as IE8 2.0 3.0 3.1b 3.0 3.1 4.0b 1.0 2.0 9.62 10.0a |
Introduced in: | HTML 5 |
Returns an Media object.
public function get media():Media
See also
CSSOM View outerHeight | property |
outerHeight:Number
[read-only] Product Versions : | 5.5 6.0 7.0 8.0 as IE7 8.0 as IE8 2.0 3.0 3.1b 3.0 3.1 4.0b 1.0 2.0 9.62 10.0a |
Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Gets the height of the outside of the browser window. window.outerHeight represents the height of the whole browser window including toolbars and window chrome.
public function get outerHeight():Number
See also
CSSOM View outerWidth | property |
outerWidth:Number
[read-only] Product Versions : | 5.5 6.0 7.0 8.0 as IE7 8.0 as IE8 2.0 3.0 3.1b 3.0 3.1 4.0b 1.0 2.0 9.62 10.0a |
Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Gets the width of the outside of the browser window. window.outerWidth represents the width of the whole browser window including sidebar (if expanded), window chrome and window [re-]sizing borders/handles.
public function get outerWidth():Number
See also
CSSOM View pageXOffset | property |
pageXOffset:Number
[read-only] Product Versions : | 5.5 6.0 7.0 8.0 as IE7 8.0 as IE8 2.0 3.0 3.1b 3.0 3.1 4.0b 1.0 2.0 9.62 10.0a |
Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Returns the number of pixels that the document has already been scrolled horizontally.
Note: window.pageXOffset == window.scrollX; // always true
public function get pageXOffset():Number
See also
// make sure and go over to the second horizontal page if (window.scrollX) { scroll(0,0); } scrollBy(400, 0);
CSSOM View pageYOffset | property |
pageYOffset:Number
[read-only] Product Versions : | 5.5 6.0 7.0 8.0 as IE7 8.0 as IE8 2.0 3.0 3.1b 3.0 3.1 4.0b 1.0 2.0 9.62 10.0a |
Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Returns the number of CSS pixels the user has scrolled towards the bottom within the viewport.
Note: window.pageYOffset == window.scrollY; // always true
public function get pageYOffset():Number
See also
// make sure and go over to the second horizontal page if (window.scrollY) { scroll(0,0); } scrollByPages(1);
CSSOM View screen | property |
screen:Screen
[read-only] Product Versions : | 5.5 6.0 7.0 8.0 as IE7 8.0 as IE8 2.0 3.0 3.1b 3.0 3.1 4.0b 1.0 2.0 9.62 10.0a |
Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Returns a reference to the screen object associated with the window.
public function get screen():Screen
See also
if (screen.pixelDepth < 8) { // use low-color version of page } else { // use regular, colorful page }
CSSOM View screenX | property |
screenX:Number
[read-only] Product Versions : | 5.5 6.0 7.0 8.0 as IE7 8.0 as IE8 2.0 3.0 3.1b 3.0 3.1 4.0b 1.0 2.0 9.62 10.0a |
Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Returns the horizontal distance of the left border of the user's browser from the left side of the screen.
Note (Opera): Opera calculates the coordinates of the specific tab window relative to the encompassing browser window. This is understandable given its way of working with windows, but strictly speaking it's a bug. It should give the coordinates of the encompassing browser window relative to the screen.
public function get screenX():Number
See also
CSSOM View screenY | property |
screenY:Number
[read-only] Product Versions : | 5.5 6.0 7.0 8.0 as IE7 8.0 as IE8 2.0 3.0 3.1b 3.0 3.1 4.0b 1.0 2.0 9.62 10.0a |
Introduced in: | DOM 0 |
Modified in: | HTML 5 |
Returns the vertical distance of the top border of the user's browser from the top edge of the screen.
Note (Opera): Opera calculates the coordinates of the specific tab window relative to the encompassing browser window. This is understandable given its way of working with windows, but strictly speaking it's a bug. It should give the coordinates of the encompassing browser window relative to the screen.
public function get screenY():Number
See also