Element.getExpression() (Method)

Obtains an expression value from within a style rule.


JScript - 5.0
Internet Explorer - 5.0
Property/method value type:String primitive
JavaScript syntax:IEmyElement.getExpression()

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:


the getExpression() method can be applied to the style object containing the rule with that expression like this:


The value 200px would be returned.

See also:Element.removeExpression(), Element.setExpression(), style.getExpression(), style.removeExpression(), style.setExpression()