Availability: |
| |||
Inherits from: | style object | |||
JavaScript syntax: | IE | myRuntimeStyle = myElement.runtimeStyle | ||
Object methods: | getAttribute(), getExpression(), removeExpression(), setAttribute(), setExpression() |
This represents the cascaded format and style of its parent object. The value in this object overrides global style-sheets, inline styles and HTML tag attribute values. It overwrites the values provided by currentStyle objects but not those supplied by the style object.
The properties belonging to this object correspond closely to those of the style object and so there is little point in discussing them again here. Refer to the style object property descriptions for details of the various properties.
Because the style values are cascaded from style sheet to style sheet and may include some inline styles as well as some explicit styles, objects need to maintain a current style value that is the result of all the inheritances applied on top of one another.
In addition they maintain a run-time style which reflects dynamic changes as well. The runtimeStyle is based on the currentStyle originally.
Prev | Home | Next |
rule.style | Up | RValue |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |