JavaScript Events Join the free FREE WDVL Newsletter JavaScript Events JavaScript applications are typically event-driven.
Events are actions that occur, usually as a result of something the user does.
For example, a button click is an event, as is giving focus to a form element. Most of the functions of JavaScript are invoked within a FORM or document with the help of Event Handlers. For example, suppose you have created a JavaScript function called GotoURL . These statements get executed when the user clicks on the button. Notice in this example the use of this.form to refer to the current form.