The DOM2 AbstractViews module is the first step towards standardizing the window object. Currently, all it defines is a defaultView property of the document object (that contains a reference to the containing window object) and a getComputedStyles() method.
This script defines the document.defaultView property and maps a getComputedStyle() method to the currentStyle() property for an element. Currently, getComputedStyle() ignores any pseudo element argument you might provide it.
( Javascript 1.0 | JScript 1.0 | ECMAScript 1.0 ) & DOM 1
Posted.
This script is released under a Creative Commons License.