HTML Events References
HTML Events References
When a user visit your website, they do things like click on text and images and given
links, hover over things etc. These are examples of what JavaScript calls events.
We can write our event handlers in Javascript or vbscript and can specify these event
handlers as a value of event tag attribute. The HTML 4.01 specification defines 19 event
attributes as listed below −
NOTE − Here script refer to any VBScript or JavaScript function or piece of code.
Keyboard Events
There are following three events which are generated by keyboard. These events are not
valid in base, bdo, br, frame, frameset, head, html, iframe, meta, param, script, style, and
title elements.
Other Events
There following other 7 events which are generated by mouse when it comes in contact of
any HTML tag. These events are not valid in base, bdo, br, frame, frameset, head, html,
iframe, meta, param, script, style, title elements.
onmouseout script Script runs when mouse pointer moves out of an element
onmouseover script Script runs when mouse pointer moves over an element
Advertisements
https://www.tutorialspoint.com/html/html_events_ref.htm 2/3
10/20/2018 HTML Events References
https://www.tutorialspoint.com/html/html_events_ref.htm 3/3