Unit 7.4. JavaScript Events


JavaScript enables a Web page to be interactive with the user instead of the Web page merely displaying content to the user. It does this by recognizing when a user performs an action. The action initiates the execution of JavaScript code. These actions are known as events, and the methods that recognize them are known as event handlers. Most JavaScript code runs as a result of the occurrence of some event caused by the user. An exception to this would be JavaScript code embedded in HTML that runs as the document is loaded into the browser.

Almost any action that can occur in regard to a Web site is an event with a corresponding event handler. Some events and their handlers are:

  • Completing the download of ...

Get Oracle® Web Application Programming for PL/SQL® Developers now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.