DesignerDocument.removeScript Method
SharePoint Designer Developer Reference |
Removes the specified script from a given element.
Syntax
expression.removeScript(element, event, index)
expression Required. A variable that represents a DesignerDocument object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
element | Required | IHTMLElement | Specifies the element that contains the script. |
event | Required | String | Specifies the name of the event that causes the script to run. |
index | Optional | Variant | Specifies the script item if an event specifies more than one script to run when the event occurs. Multiple scripts are one-based rather than zero-based so that the index for the first script for an event is "1". |
See Also