HTML Page Structure

HTML Elements
HTML Attributes


HTML Javascript 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

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.