HTML can have following events such as:
- Form events: reset, submit, etc.
- Select events: text field, text area, etc.
- Focus event: focus, blur, etc.
- Mouse events: select, mouse up, mouse move, mouse down, click, double click, etc.
List for Windows Event Attributes:
|Event Name||Handler Name||Occurs When|
|onBlur||blur||When form input loses focus|
|onClick||click||When the user clicks on a form element or a link|
|onSubmit||submit||When a user submits a form to the server.|
|onLoad||load||When page loads in a browser.|
|onFocus||focus||When a user focuses on an input field.|
|onSelect||select||When a user selects the form input filed.|
<input type="button" value="Click" onclick="alert('Hi, how are you')">