
This interface specifies the style sheet for the page.
This element can be used only within either the HEAD or BODY element.
IHTMLStyleElement Methods
| put_type | get_type | get_readyState |
| put_onreadystatechange | get_onreadystatechange | put_onload |
| get_onload | put_onerror | get_onerror |
| get_styleSheet | put_disabled | get_disabled |
| put_media | get_media |
HRESULT get_disabled(
VARIANT_BOOL *p
);
Retrieves the Boolean value that determines whether this style element is disabled.
See also put_disabled
HRESULT get_media(
BSTR *p
);
Retrieves the string that indicates which media this style element applies to.
See also put_media
HRESULT get_onerror(
VARIANT *p
);
Retrieves the inline script associated with the onerror event on the style element. This error event occurs when the loading of a document or image causes an error.
For more information on inline script, see Attaching an Event Handler in the Event Model documentation.
See also put_onerror
HRESULT get_onload(
VARIANT *p
);
Retrieves the script associated with the onload event on the STYLE element. Occurs immediately after the browser loads the given object.
For more information on inline script, see Attaching an Event Handler in the Event Model documentation.
See also put_onload
HRESULT get_onreadystatechange(
VARIANT *p
);
Retrieves the script associated with the onreadystatechange event on the STYLE element.
For more information on inline script, see Attaching an Event Handler in the Event Model documentation.
See also put_onreadystatechange
HRESULT get_readyState(
BSTR *p
);
Retrieves the current state of an object being downloaded.
| complete | The object is completely loaded. |
| interactive | The object can be interacted with even though it is not fully loaded. |
| loading | The object is currently being loaded. |
| uninitialized | The object is not created. Usually when the object is being downloaded. |
Each object can independently determine which of the states it exposes.
HRESULT get_styleSheet(
IHTMLStyleSheet **p
);
Retrieves an interface pointer that provides access to the style sheet object's properties and methods.
See also IHTMLStyleSheet
HRESULT get_type(
BSTR *p
);
Retrieves the CSS language in which the style sheet is written.
See also put_type
HRESULT put_disabled(
VARIANT_BOOL v
);
Sets the Boolean value that determines whether this style element is disabled.
See also get_disabled
HRESULT put_media(
BSTR v
);
Sets the inline script that indicates which media this style element applies to.
See also get_media, IHTMLLinkElement
HRESULT put_onerror(
VARIANT v
);
Sets the inline script associated with the onerror event on the style element. This error event occurs when the loading of a document or image causes an error.
For more information on inline script, see Attaching an Event Handler in the Event Model documentation.
See also get_onerror
HRESULT put_onload(
VARIANT v
);
Sets the script associated with the onload event on the STYLE element. Occurs immediately after the browser loads the given object.
For more information on inline script, see Attaching an Event Handler in the Event Model documentation.
See also get_onload
HRESULT put_onreadystatechange(
VARIANT v
);
Sets the script associated with the onreadystatechange event on the STYLE element.
For more information on inline script, see Attaching an Event Handler in the Event Model documentation.
See also get_onreadystatechange
HRESULT put_type(
BSTR v
);
Sets the CSS language in which the style sheet is written.
See also get_type
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.