getPropertyValue
Summary
Gets the value of a property in a CSS style declaration.
Method of css/cssom/CSSStyleDeclaration/CSSStyleDeclarationcss/cssom/CSSStyleDeclaration/CSSStyleDeclaration
Syntax
var value = declaration.getPropertyValue(property);
Parameters
property
- Data-type
- String
The name of the property.
Return Value
Returns an object of type StringString
The value of the property if it is explicitly set for this declaration block, or null.
Related specifications
- DOM Level 2 Style
- Recommendation
Attributions
Microsoft Developer Network: [Windows Internet Explorer API reference Article]