Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

CSSOM View

PropertyDescription
heightGets the height of the rectangle that surrounds the object content.
innerHeightGets the height of the window, excluding user interface elements, such as the window frame, toolbars, and so on.
innerWidthGets the width of the window, excluding user interface elements, such as the window frame.
offsetXGets the x-coordinate of the mouse pointer, relative to the target node.
offsetYGets the y-coordinate of the mouse pointer, relative to the target node.
outerHeightGets the height of the window, including user interface elements, such as the window frame, toolbars, and so on.
outerWidthGets the width of the window, including user interface elements, such as the window frame.
pageXGets the y-coordinate of the mouse pointer, relative to the upper-left corner of the page.
pageYGets the y-coordinate of the mouse pointer, relative to the upper-left corner of the page.
pageXOffsetGets the distance, in pixels, that a document has scrolled horizontally.
pageYOffsetGets the distance, in pixels, that a document has scrolled vertically.
pixelBottomSets or retrieves the bottom position of the object.
pixelHeightSets or retrieves the height of the object.
pixelLeftSets or retrieves the left position of the object.
pixelRightSets or retrieves the right position of the object.
pixelTopSets or retrieves the top position of the object.
pixelWidthSets or retrieves the width of the object.
posBottomSets or retrieves the bottom position of the object in the units specified by the bottom attribute.
posHeightSets or retrieves the height of the object in the units specified by the height attribute.
posLeftSets or retrieves the left position of the object in the units specified by the left attribute.
posRightSets or retrieves the right position of the object in the units specified by the right attribute.
posTopSets or retrieves the top position of the object in the units specified by the top attribute.
posWidthSets or retrieves the width of the object in the units specified by the width attribute.
widthGets the width of the rectangle that surrounds the object content.
xGets the x-coordinate of the mouse pointer, relative to the last positioned ancestor element.
yGets the y-coordinate of the mouse pointer, relative to the last positioned ancestor element.
Media Query ListenersMedia Query Listeners allow developers to register listeners that monitor and call back when a specific change happens to the media environment

See also

Related articles

CSSOM

Attributions