Changing the name property overrides this setting. In the following example, the valueGetter function uses a for loop to iterate over the array of elements on the valueTest form. You can set target using a string, if the string represents a window name. The target property cannot be assigned the value of a JavaScript expression or variable. Invokes the handler for the specified event.
Parameters event The name of an event for which the specified object has an event handler.
The reset method restores a form element's default values. A reset button does not need to be defined for the form. The Text object's onChange event handler calls a function that executes the form's reset method if the user provides incorrect input. When the reset method executes, defaults are restored and the form's onReset event handler displays a message. See also onReset , Reset submit Submits a form.