removeScript Method
Removes the specified script from a given element.
expression.removeScript(element, event, index)
*expression * Required. An expression that returns one of the objects in the Applies To list.
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".
Example
The following example removes the script from the onclick event in the BODY element of the active document.
Dim objBody As FPHTMLBody
ActiveDocument.removeScript objBody, "onclick"
Applies to | FPHTMLDocument Object | IFPDocument Object | IFPDocument Object