JavaScript Events

HTML allows event handler attributes, with JavaScript code, to be added to HTML elements.

Code :