Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

getComputedStyle method

Returns the current computed value of the combined CSS properties for an element.

Document Object Model (DOM) Level 2 Style Specification, Section 2.2.1Internet Explorer 10

 

Syntax


HRESULT retVal = object.getComputedStyle(elt, pseudoElt, retVal);

Parameters

elt [in]

Type: Element

pseudoElt [in, optional]

Type: DOMString

retVal [out, retval]

Type: CSSStyleDeclaration

Return value

Type: HRESULT

This method can return one of these values.

S_OK

Standards information

 

 

Community Additions

ADD
Show:
© 2015 Microsoft