Element.getExpression() (Method)

Obtains an expression value from within a style rule.

Availability:

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:

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.

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