IHTMLScriptElement Object

Microsoft FrontPage Visual Basic

IHTMLScriptElement Object

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)