You can then either programmatically enter a value in the field or let the user enter a value. In the following example, the checkPassword function confirms that a user has entered a valid password. Each form element has a form property that is a reference to the element's parent form. This property is especially useful in event handlers, where you might need to refer to another element on the current form. Invokes the handler for the specified event.
Parameters event The name of an event for which the object has an event handler.
Description For information on handling events, see the Client-Side JavaScript Guide . A string specifying the name of this object. Property of Password Implemented in JavaScript 1.0 Security JavaScript 1.1. This property is tainted by default. For information on data tainting, see the Client-Side JavaScript Guide .