DOM2 Views - Usage

dom2_views.js defines the following properties and methods:

document.defaultView

document.defaultView

A reference to the containing window object.

AbstractView.getComputedStyle()

Synopsis

window.getComputedStyle(element, pseudoElement)

Arguments

element

A reference to the element whose style information you want to retrieve.

pseudoElement

A CSS pseudoelement or null if there is none. Ignored in this script.

Returns

A style object that contains all the applied and inherited style values for the element.

Description

An element's style object reflects only the inline style properties applied through the style HTML attribute (or applied to the style object after load using Javascript). getComputedStyle() returns a style object that contains all the styles that apply to the element from all sources as well as default and inherited styles.

More about this script

Related to this script

Licensing

This script is released under a Creative Commons License.