Hello, world!

HTML 5 Events HTML

HTML event attributes can be included to your HTML elements to identify event actions. Listed in the HTML tutorial are the form events, keyboard events, window event attributes, mouse events, media events, clipboard events and other miscellaneous events.



HTML5 - Events

JavaScript uses event attributes that execute when a user clicks in text, images, hyperlinks, hover over things or when something happens when they browse your webpage.
We can identify these event handlers as a value of event tag element and these event handlers can be written in Javascript or vbscript.
When the user does something or an event take place for every HTML5 element, then javascript or vbscript will be activated.
JavaScripts are applied to include interactivity to your web pages.

These following attributes can be used to generate any javascript or vbscript code set as value.
offline - Script to be activated when the web content goes offline
onabort - Script to be activated on an abort event
onafterprint - Script to be activated after printing the document
onbeforeonload - Script to be activated before loading the document
onbeforeprint - Script to be activated before printing the document
offline - Script to be activated when the web content goes offline
onabort - Script to be activated on an abort event
onafterprint - Script to be activated after printing the document
onbeforeonload - Script to be activated before loading the document
onbeforeprint - Script to be activated before printing the document
onblur - Script to be activated when the window loses focus
oncanplay - Script to be activated when media is ready to start playing, but might have to stop when it has not buffered enough
oncanplaythrough - Script to be activated when media can start playing all the way to the end, without pausing for buffering
onchange - Script to be activated when there has been changes to an element
onclick - Executes on a mouse click on the element
oncontextmenu - Script to be activated when a context menu is generated
ondblclick - Executes on a mouse double-click on the element
ondrag - Script to be activated when dragging an element occcurs
ondragend - Script to be activated at the end of a drag operation
ondragenter - Script to be activated when an element has been dragged to a valid drop target
ondragleave - Script to be activated when an element leaves a valid drop target
ondragover - Script to be activated when an element is being dragged over a valid drop target
ondragstart - Script to be activated at the start of a drag operation
ondrop - Script to be activated when dragged element is being dropped
ondurationchange - Script to be activated when there has been any changes at the length of the media.
onemptied - Script to be activated when a media resource element suddenly becomes unavailable.
onended - Script to be activated when end of the media reached
onerror - Script to be activated when an error take place
onfocus - Script to be activated when the window gets focus
onformchange - Script to be activated when there has been any changes to a form
onforminput - Script to be activated when a form gets user input
onhaschange - Script to be activated when there has been changes to the document.
oninput - Script to be activated when an element gets user input
oninvalid - Script to be activated when there is an invalid element
onkeydown - Script to be activated when pressing a key takes place
onkeypress - Script to be activated when pressing and releasing a key takes place
onkeyup - Script to be activated when realing a key takes place
onload - Script to be activated when loading the document occurs
onloadeddata - Script to be activated when there has been loaded a media data
onloadedmetadata - Script to be activated when the length and other media data of a media element is loaded
onloadstart - Script to be activated when the browser begins to load the media data
onmessage - Script to be activated when the message is generated
onmousedown - Executes when a mouse button is cliked
onmousemove - Executes when moving the mouse pointer occurs
onmouseout - Executes when moving the mouse pointer out of an element takes place
onmouseover - Executes when moving the mouse pointer over an element takes place
onmouseup - Executes when realeasing a mouse button occurs
onmousewheel - Executes when rotating the mouse wheel takes place
onoffline - Script to be activated when the document begins to work offline
ononline - Script to be activated when the document begins to work online
onpagehide - Script to be activated when the window is hidden from a page
onpageshow - Script to be activated when the window becomes visible from a page
onpause - Script to be activated when pausing media data takes place
onplay - Script to be activated when media data is ready to start playing
onplaying - Script to be activated when media data has begin playing
onpopstate - Script to be activated when there has been any changes in the window's history
onprogress - Script to be activated when the browser is getting the media data
onratechange - Script to be activated when there has been any changes on the media data's playing rate
onreadystatechange - Script to be activated when there has been any changes on the ready-state
onredo - Script to be activated when the document executes a redo
onresize - Script to be activated when resizing the window takes place
onscroll - Script to be activated when an element's scrollbar is being scrolled on the page
onseeked - Script to be activated when a media element's seeking attribute is set to false defining that the seeking has ended
onseeking - Script to be activated when a media element's seeking attribute is set to true defining that the seeking has started
onselect - Script to be activated when selecting an element takes place
onstalled - Script to be activated when there is an error in getting media data for any reason
onstorage - Script to be activated when loading a document occurs
onsubmit - Script to be activated when submitting a form occurs
onsuspend - Script to be activated when the browser has been fetching media data, but stopped before the media file was fetched completely
ontimeupdate - Script to be activated when there has been any changes on the playing position of the media
onundo - Script to be activated when a document executes an undo
onunload - Executes when the page is left by the user or when unloading the page takes place
onvolumechange - Script to be activated when changing the volume of the media occurs which includes setting the volume to "mute"
onwaiting - Script to be activated when media has paused or stopped playing, but is expected to resume