aspxtreme

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



Books and more ...

Contents
HTML Elements / DOM Objects
HTML Element Attributes
CSS Attributes
DOM Object Properties
DOM-compliant Events Reference
DOM Methods Reference
DOM Collections Reference
 


Suggested Reading



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 Rey Nuñez All rights reserved.

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

You can help support aspxtreme