Share via


onreset Property

Returns or sets a Variant that represents the value of the onreset attribute that is the name of the script to run when the onreset event fires.

expression.onreset

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following example sets the onreset attribute for the first FORM element in the active document.

Dim objForm As FPHTMLFormElement
    
Set objForm = ActiveDocument.forms.Item(0)
    
objForm.onreset = "script()"

Applies to | FPHTMLFormElement Object | IHTMLFormElement Object