HTML TUTORIALS - HTML Events Ref
HTML Events Ref
ADVERTISEMENTS
Attribute | Value | Description |
---|---|---|
onload | script | Script runs when a HTML document loads |
onunload | script | Script runs when a HTML document unloads |
ADVERTISEMENTS
Attribute | Value | Description |
---|---|---|
onchange | script | Script runs when the element changes |
onsubmit | script | Script runs when the form is submitted |
onreset | script | Script runs when the form is reset |
onselect | script | Script runs when the element is selected |
onblur | script | Script runs when the element loses focus |
onfocus | script | Script runs when the element gets focus |
ADVERTISEMENTS
Attribute | Value | Description |
---|---|---|
onkeydown | script | Script runs when key is pressed |
onkeypress | script | Script runs when key is pressed and released |
onkeyup | script | Script runs when key is released |
Attribute | Value | Description |
---|---|---|
onclick | script | Script runs when a mouse click |
ondblclick | script | Script runs when a mouse double-click |
onmousedown | script | Script runs when mouse button is pressed |
onmousemove | script | Script runs when mouse pointer moves |
onmouseout | script | Script runs when mouse pointer moves out of an element |
onmouseover | script | Script runs when mouse pointer moves over an element |
onmouseup | script | Script runs when mouse button is released |