ScriptElement Object

SharePoint Designer Developer Reference

Represents a SCRIPT element in an HTML document.

Interfaces
This object implements the following interfaces

Remarks

Use the scripts property to return an ElementCollection collection that represents a collection of all the SCRIPT elements in a document. Use the Item method to return a ScriptElement 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.

Visual Basic for Applications
Dim objScript As ScriptElement
Set objScript = ActiveDocument.Scripts.Item(0)

See Also