Click to return to the Reusing Browser Technology home page    
IHTMLStyle2::setExpressio...     IHTMLStyleElement::get_di...     Interfaces and Scripting ...    
Web Workshop  |  Reusing Browser Technology

IHTMLStyleElement Interface


The IHTMLStyleElement interface specifies the style sheet for the page.

IHTMLStyleElement Methods

get_disabled Retrieves the Boolean value that determines whether this STYLE element is disabled.
get_media Retrieves the string that indicates which media this STYLE element applies to.
get_onerror Retrieves a pointer to the event handler function associated with the onerror event on the STYLE element. This error event occurs when the loading of a document or image causes an error.
get_onload Retrieves the script associated with the onload event on the STYLE element. Occurs immediately after the browser loads the given object.
get_onreadystatechange Retrieves the script associated with the onreadystatechange event on the STYLE element.
get_readyState Retrieves the current state of an object being downloaded.
get_styleSheet Retrieves an interface pointer that provides access to the style sheet object's properties and methods.
get_type Retrieves the cascading style sheets (CSS) language in which the style sheet is written.
put_disabled Sets the Boolean value that determines whether this STYLE element is disabled.
put_media Sets a pointer to the event handler function that indicates which media this STYLE element applies to.
put_onerror Sets a pointer to the event handler function associated with the onerror event on the STYLE element. This error event occurs when the loading of a document or image causes an error.
put_onload Sets the script associated with the onload event on the STYLE element. Occurs immediately after the browser loads the given object.
put_onreadystatechange Sets the script associated with the onreadystatechange event on the STYLE element.
put_type Sets the cascading style sheets (CSS) language in which the style sheet is written.

Interface Information

Implementation System (Mshtml.dll)
Inherits from IDispatch
Header and IDL files Mshtml.h, Mshtml.idl
Minimum availability Internet Explorer 4.0
Minimum operating systems Windows 95, Windows NT 4.0

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

Remarks

The STYLE element can be used only within either the HEAD or BODY element.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.