HTML Events

"An event is an unexpected external occurrence".

Most JavaScript applications perform actions as a response to the event. An event is a signal from the browser that something has happened. In HTML, you can attach event to any specific HTML DOM element and implement any action that you want to perform when event triggers. Learn more about Javascript events, please visit JavaScript tutorial.

Window Events Attributes

The below table contains document events list which are supported by HTML version.

Event NameEvent Description
onloadThis event will encounter when page loads.
onunloadThis event will encounter when page unloads.

Form Events

The below table contains form events list which are supported by HTML version.

Event NameEvent Description
onblurThis event will encounter when form control loses focus.
onfocusThis event will encounter when form control gets focus.
onresetThis event will encounter when user reset form.
onsubmitThis event will encounter when user submited form.

Keyboard Events

The below table contains keyboard events list which are supported by HTML version.

Event NameEvent Description
onkeydownThis event will encounter user pressed key.
onkeypressThis event will encounter when user pressed key and release.
onkeyupThis event will encounter when user release pressed key.

Mouse Events

The below table contains mouse events list which are supported by HTML version.

Event NameEvent Description
onclickThis event will encounter when mouse click.
ondblclickThis event will encounter when mouse double click.
onmousedownThis event will encounter when mouse button is pressed and hold.
onmousemoveThis event will encounter when mouse moves over html document.
onmouseoutThis event will encounter when mouse came out from specific html element.
onmouseoverThis event will encounter when mouse comes over to specific html element.
onmouseupThis event will encounter when mouse button is released.

Media Events

The below table contains media events list which are supported by HTML version.

Event NameEvent Description
onabortThis event will encounter when loading of a resource(image, file or object) has been aborted.

See Also

HTML Form Tags
HTML Page Formating Tags
HTML Other Tags


 
 
SHARE THIS IF YOU LIKE!
submit to reddit

SUBSCRIBE FOR LATEST UPDATES
HAVE WE CONNECTED ON FACEBOOK?
TOP TUTORIALSTOP CODE EXAMPLESTOP LIVE DEMOLINKSSTAY CONNECTED
HTML Tutorial
HTML5 Tutorial
Bootstrap3 Tutorial
Javascript Tutorial
TypeScript Tutorial
AngularJS Tutorial
CSharp Tutorial
PHP Tutorial
Developer Tools
Javascript
AngularJS
Google MAP API V3
ASP.NET
Javascript
AngularJS
Google MAP API V3
Contact Us
Advertise with Us
Privacy Policy
Disclaimer
Stay connected. We actually like you. If you want to get up to the minute updates, then connect with us on your fav below.
 
Twitter   Linkedin   Facebook   Google+    RSS   Pinterest
 
Protected by Copyscape Original Content Checker
 
 
Copyright ©2017 www.techstrikers.com Unauthorized reproduction/replication of any part of this site is prohibited.