style.getExpression() (Method)

An MSIE extension for managing style controls.

Availability:

JScript - 5.0
Internet Explorer - 5.0
Property/method value type:String primitive
JavaScript syntax:IEmyStyle.getExpression(aProperty)
Argument list:aPropertyThe name of a property whose expression is to be retrieved

This is part of the MSIE support for managing behaviors. With this method, you can access the value of an expression that was previously defined with the setExpression() method or which is defined within a style rule.

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.getExpression(), Element.removeExpression(), Element.setExpression(), style.removeExpression(), style.setExpression()