FPHTMLScriptElement Object

Microsoft FrontPage Visual Basic

FPHTMLScriptElement Object

FPHTMLScriptElement Multiple objects

Represents a SCRIPT element in an HTML document. See also the IHTMLScriptElement object.

Using the FPHTMLScriptElement 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 FPHTMLScriptElement 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 FPHTMLScriptElement

Set objScript = ActiveDocument.Scripts.Item(0)