Handling event part 1

Events



You can write JavaScript code that executes when an event occurs, such as when a user clicks an HTML element, moves the mouse, or submits a form.
When an event occurs on a target element, a handler function is executed. 
Common HTML events include:
Corresponding events can be added to HTML elements as attributes. 
For example: <p onclick="someFunc()">some text</p>

Comments