asp.net.ph

Skip Navigation Links

getExpression Method

DHTML Methods


DOM Level 2 Specification.

Retrieves the expression for the given CSS property.

Syntax

vExpression = object.getExpression ( sPropertyName ) 
Parameters

sPropertyName Required. Name of the property from which to retrieve the expression.

Return Value

Variant. Returns a variant value representing the expression of the property.

Remarks

The getExpression method applies to the style object and can be used to return expressions set on supported CSS Attributes. This method is also available in scripting for the innerHTML and value attributes.

Using getExpression in script:

var sExpr = object.getExpression ( sProperty ) 

Using getExpression on a style:

var sExpr = object.style.getExpression ( sProperty ) 

This method is Microsoft's® implementation of the generic getPropertyValue interface provided for in the DOM.

Example

The following sample code illustrates the implementation for getExpression. The para1 paragraph's width is set equal to the sum of two images' widths. The getExpression method will return a variant containing the expression.

Sample Code


See Also

Dynamic Properties, recalc, removeExpression, setExpression



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note