Skip to content

Latest commit

 

History

History
73 lines (72 loc) · 4.76 KB

html5-events.md

File metadata and controls

73 lines (72 loc) · 4.76 KB

HTML5 Events List

Sl.No Event Description
01. offline Triggers when the document goes offline
02. onabort Triggers on an abort event
03. onafterprint Triggers after the document is printed
04. onbeforeonload Triggers before the document loads
05. onbeforeprint Triggers before the document is printed
06. onblur Triggers when the window loses focus
07. oncanplay Triggers when media can start play, but might has to stop for buffering
08. oncanplaythrough Triggers when media can be played to the end, without stopping for buffering
09. onchange Triggers when an element changes
10. onclick Triggers on a mouse click
11. oncontextmenu Triggers when a context menu is triggered
12. ondblclick Triggers on a mouse double-click
13. ondrag Triggers when an element is dragged
14. ondragend Triggers at the end of a drag operation
15. ondragenter Triggers when an element has been dragged to a valid drop target
16. ondragleave Triggers when an element leaves a valid drop target
17. ondragover Triggers when an element is being dragged over a valid drop target
18. ondragstart Triggers at the start of a drag operation
19. ondrop Triggers when dragged element is being dropped
20. ondurationchange Triggers when the length of the media is changed
21. onemptied Triggers when a media resource element suddenly becomes empty.
22. onended Triggers when media has reach the end
23. onerror Triggers when an error occur
24. onfocus Triggers when the window gets focus
25. onformchange Triggers when a form changes
26. onforminput Triggers when a form gets user input
27. onhaschange Triggers when the document has change
28. oninput Triggers when an element gets user input
29. oninvalid Triggers when an element is invalid
30. onkeydown Triggers when a key is pressed
31. onkeypress Triggers when a key is pressed and released
32. onkeyup Triggers when a key is released
33. onload Triggers when the document loads
34. onloadeddata Triggers when media data is loaded
35. onloadedmetadata Triggers when the duration and other media data of a media element is loaded
36. onloadstart Triggers when the browser starts to load the media data
37. onmessage Triggers when the message is triggered
38. onmousedown Triggers when a mouse button is pressed
39. onmousemove Triggers when the mouse pointer moves
40. onmouseout Triggers when the mouse pointer moves out of an element
41. onmouseover Triggers when the mouse pointer moves over an element
42. onmouseup Triggers when a mouse button is released
43. onmousewheel Triggers when the mouse wheel is being rotated
44. onoffline Triggers when the document goes offline
45. ononline Triggers when the document comes online
46. onpagehide Triggers when the window is hidden
47. onpageshow Triggers when the window becomes visible
48. onpause Triggers when media data is paused
49. onplay Triggers when media data is going to start playing
50. onplaying Triggers when media data has start playing
51. onpopstate Triggers when the window's history changes
52. onprogress Triggers when the browser is fetching the media data
53. onratechange Triggers when the media data's playing rate has changed
54. onreadystatechange Triggers when the ready-state changes
55. onredo Triggers when the document performs a redo
56. onresize Triggers when the window is resized
57. onscroll Triggers when an element's scrollbar is being scrolled
58. onseeked Triggers when a media element's seeking attribute is no longer true, and the seeking has ended
59. onseeking Triggers when a media element's seeking attribute is true, and the seeking has begun
60. onselect Triggers when an element is selected
61. onstalled Triggers when there is an error in fetching media data
62. onstorage Triggers when a document loads
63. onsubmit Triggers when a form is submitted
64. onsuspend Triggers when the browser has been fetching media data, but stopped before the entire media file was fetched
65. ontimeupdate Triggers when media changes its playing position
66. onundo Triggers when a document performs an undo
67. onunload Triggers when the user leaves the document
68. onvolumechange Triggers when media changes the volume, also when volume is set to "mute"
69. onwaiting Triggers when media has stopped playing, but is expected to resume