HTML Events Reference
HTML Events Reference
Advertisements
When users visit your website, they do things like click various links, bring mouse over text and images etc. These
are examples of what we call events in JavaScript and VBScript terminologies.
We can write our event handlers using JavaScript or VBScript and can specify some actions to be taken against
these events. Though these are the events but they will be specified as attributes for the HTML tags.
The HTML 4.01 specification had defined 19 events but later HTML-5 has added many other events which we
have listed down here −
https://www.tutorialspoint.com/cgi-bin/printpage.cgi 1/5
10/20/2018 HTML Events Reference
Form Events
Following tags have been introduced in older versions of HTML but all the tags marked with
https://www.tutorialspoint.com/cgi-bin/printpage.cgi 2/5
10/20/2018 HTML Events Reference
Keyboard Events
Mouse Events
Following tags have been introduced in older versions of HTML but all the tags marked with
ondragenter Triggers when an element has been dragged to a valid drop target
ondragover Triggers when an element is being dragged over a valid drop target
https://www.tutorialspoint.com/cgi-bin/printpage.cgi 3/5
10/20/2018 HTML Events Reference
Media Events
Following tags have been introduced in older versions of HTML but all the tags marked with
oncanplay Triggers when a media can start play, but might has to stop for buffering
Triggers when a media can be played to the end, without stopping for
oncanplaythrough
buffering
https://www.tutorialspoint.com/cgi-bin/printpage.cgi 4/5
10/20/2018 HTML Events Reference
Triggers when the duration and other media data of a media element is
onloadedmetadata
loaded
onloadstart Triggers when the browser starts loading the media data
onratechange Triggers when the playing rate of media data has changed
Triggers when the seeking attribute of a media element is true, and the
onseeking
seeking has begun
Triggers when the browser has been fetching media data, but stopped
onsuspend
before the entire media file was fetched
Triggers when a media changes the volume, also when volume is set to
onvolumechange
"mute"
onwaiting Triggers when media has stopped playing, but is expected to resume
https://www.tutorialspoint.com/cgi-bin/printpage.cgi 5/5