Share via


IHTMLStyleElement interface

This interface specifies the style sheet for the page.

Members

The IHTMLStyleElement interface inherits from the IDispatch interface. IHTMLStyleElement also has these types of members:

  • Properties

Properties

The IHTMLStyleElement interface has these properties.

Property Description

disabled

Sets or retrieves a value that indicates whether the user can interact with the object.

media

Sets or retrieves the media type.

onload

Sets or retrieves a pointer to the event handler function associated with the HTMLFrameSiteEvents::onload event. The HTMLFrameSiteEvents::onload event occurs immediately after the browser loads the object.

readyState

Retrieves a value that indicates the current state of the object.

styleSheet

Note  For the style element, IHTMLStyleElement::styleSheet is no longer supported. Starting with IE11, use IHTMLLinkElement5::sheet. For info, see Compatibility changes.
 

Retrieves an interface pointer that provides access to the style sheet object's properties and methods.

type

Retrieves the CSS language in which the style sheet is written.

 

Remarks

The style element can be used only within either the head or body element.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch