Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

setProperty method

Sets a property value and priority within the current declaration block.

Document Object Model (DOM) Level 2 Style Specification, Section 2.2

 

Syntax

object.setProperty(bstrPropertyName, bstrPropertyValue, bstrPropertyPriority)

Parameters

bstrPropertyName [in]

Type: String

The name of the CSS property.

bstrPropertyValue [in]

Type: String

The new value of the property.

bstrPropertyPriority [in]

Type: String

The new priority of the property (for example, !important).

Return value

Type: HRESULT

This method can return one of these values.

Standards information

See also

CSSStyleDeclaration
currentStyle
style
Reference
getPropertyPriority
getPropertyValue
item
length
removeProperty

 

 

Show:
© 2015 Microsoft