I
Expand Minimize
This topic has not yet been rated - Rate this topic

IHTMLScriptElement Object

Office 2003
IHTMLScriptElement

Represents a SCRIPT element in an HTML document. The IHTMLScriptElement object provides access to a limited number of properties and methods related to the SCRIPT element. For access to all properties and methods, use the FPHTMLScriptElement object.

Using the IHTMLScriptElement object

Use the scripts property to return an IHTMLElementCollection collection that represents a collection of all the SCRIPT elements in a document. Use the Item method to return an IHTMLScriptElement object that accesses a specific SCRIPT element, referenced by ordinal number or by the value of the id attribute. The following example accesses the first SCRIPT element in the active document.

    Dim objScript As IHTMLScriptElement

Set objScript = ActiveDocument.Scripts.Item(0)
  


Parent Objects

Child Objects


Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.