Availability: |
| |||
Inherits from: | style object | |||
JavaScript syntax: | IE | myCurrentStyle = myElement.currentStyle | ||
Object methods: | getAttribute(), getExpression(), removeExpression(), setAttribute(), setExpression() |
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 runtime style that reflects dynamic changes as well. The runtime style is based on the current style in the first place.
This represents the cascaded format and style of its parent 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.
Prev | Home | Next |
Currency symbol | Up | Cursor object |
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. |