Returns the value of the specified style property.
If you need to analyze the value of a style property, the getPropertyCSSValue method provides complex functionality in Firefox, Google Chrome and Safari.
You can find the related objects in the Supported by objects section below.
|Required. String that specifies the name of the style property. This parameter is not case sensitive.|
Returns a string that identifies the value of the style property. If no property is specified with the given name, it returns an empty string in Firefox and Opera and null in Google Chrome and Safari.
Example HTML code 1:
This example illustrates the use of the getPropertyValue method:
Did you find this example helpful?
User Contributed Comments