Availability
DOM Level 2 CSS
Synopsis
CSSStyleDeclaration getOverrideStyle(Element elt,
String pseudoElt);
Arguments
elt
The element for which the override style is desired.pseudoElt
The pseudoelement of elt, or
null if there is none.
Returns
A CSSStyleDeclaration object that represents the override style
information for the specified element and pseudoelement. The returned
object typically also implements the more commonly used
CSS2Properties interfaces.
Description
This method returns a CSSStyleDeclaration object (which typically
also implements CSS2Properties) for a specified element and optional
pseudoelement. You may make use of this returned object to make
changes to the displayed style of the specified element without
disturbing the inline style of that element and without modifying the
style sheets of the document. Conceptually, the returned value
represents a style declaration within an "override" style
sheet that takes precedence over all other style sheets and inline
styles (except for !important declarations in the
user style sheet).
Note that this method is defined not by the Document interface but by
the DocumentCSS interface. If an implementation supports the CSS
module, the Document object always implements DocumentCSS and defines
this method.
See Also
CSSStyleDeclaration, CSS2Properties, AbstractView.getComputedStyle( ), HTMLElement.style
•
Table of Contents
•
Index
•
Reviews
•
Examples
•
Reader Reviews
•
Errata
JavaScript: The Definitive Guide, 4th Edition
By
David Flanagan
Publisher
: O'Reilly
Pub Date
: November 2001
ISBN
: 0-596-00048-0
Pages
: 936
Slots
: 1
This fourth edition of the definitive reference to
JavaScript, a scripting language that can be embedded
directly in web pages, covers the latest version of the
language, JavaScript 1.5, as supported by Netscape 6 and
Internet Explorer 6. The book also provides complete
coverage of the W3C DOM standard (Level 1 and Level 2),
while retaining material on the legacy Level 0 DOM for
backward compatibility.