Click to return to the Reusing Browser Technology home page    
IHTMLScreen::get_width Me...     IHTMLScriptElement::get_d...     Interfaces and Scripting ...    
Web Workshop  |  Reusing Browser Technology

IHTMLScriptElement Interface


This interface specifies a script for the page that will be interpreted by a script engine.

IHTMLScriptElement Methods

get_defer Retrieves the value that indicates whether this script's execution is deferred until the document completes loading.
get_event Retrieves the event for which the script is being written.
get_htmlFor Retrieves the element that is being bound to the event script.
get_onerror Retrieves a pointer to the event handler function associated with the onerror event on the script element.
get_readyState Retrieves the current state of an object being downloaded.
get_src Retrieves an external file that contains the source code.
get_text Retrieves the text contained within the SCRIPT element.
get_type Retrieves the string representing the language that the current script was written in.
put_defer Sets the value that indicates whether this script's execution is deferred until the document completes loading.
put_event Sets the event for which the script is being written.
put_htmlFor Sets the element that is being bound to the event script.
put_onerror Sets a pointer to the event handler function associated with the onerror event on the script element.
put_src Sets an external file that contains the source code.
put_text Sets the text contained within the SCRIPT element.
put_type Sets the string representing the language that the current script was written in.

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

Code within the SCRIPT block that is not contained within a function is executed immediately as the page is loaded. To keep scripts from being displayed on down-level browsers, the SCRIPT block should be nested within a comment block.

The SCRIPT element is a block 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.