getComputedStyle method
Returns the current computed value of the combined CSS properties for an element.
![]() ![]() |
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
- Document Object Model (DOM) Level 2 Style Specification, Section 2.2.1
Show:

