DesignerDocument.scripts Property

SharePoint Designer Developer Reference

Returns an ElementCollection collection object that represents the collection of all SCRIPT elements in a Web page.

Syntax

expression.scripts

expression   Required. A variable that represents a DesignerDocument object.

Remarks

You can return the individual ScriptElement object by using the Item method and the element identifier, as indicated in the id attribute. If there are SCRIPT elements with duplicate id attribute values, a collection of the SCRIPT elements with the same id attribute values is returned. Collections of SCRIPT elements with the same id attribute values must be referenced by ordinal position.

See Also