The rules that are used to construct a style are comprised of multiple expressions. You can use this method to extract the value of an expression from a style item.
Given the rule might contain a line such as:
width:200px
the getExpression() method can be applied to the style object containing the rule with that expression like this:
myStyle.getExpression("width:")
The value 200px would be returned.
Prev | Home | Next |
Element.getElementsByTagName() | Up | Element.hideFocus |
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. |