Event |
Description |
HTML5 |
onafterprint |
trigger Javascript after the document is printed | Yes |
onbeforeprint |
trigger Javascript run before the document is printed | Yes |
onbeforeunload |
trigger Javascript when the document is about to be unloaded | Yes |
onblur |
trigger Javascript when the element loses focus | No |
onchange |
trigger Javascript when the element value is changed | No |
onclick |
trigger Javascript when a mouse is clicked on the element | No |
oncontextmenu |
trigger Javascript run when a context menu is triggered | Yes |
oncopy |
trigger Javascript when the user copies the content of an element | No |
oncut |
trigger Javascript when the user cuts the content of an element | No |
ondblclick |
trigger Javascript when a mouse is double-clicked on the element | No |
ondrag |
trigger Javascript when an element is dragged | Yes |
ondragend |
trigger Javascript when a drag operation is over | Yes |
ondragenter |
trigger Javascript when an element is dragged to a valid drop target | Yes |
ondragleave |
trigger Javascript when an element leaves a valid drop target | Yes |
ondragover |
trigger Javascript when an element is being dragged over a valid drop target | Yes |
ondragstart |
trigger Javasript when a drag operation is started | Yes |
ondrop |
trigger Javascript when dragged element is being dropped | Yes |
onfocus |
trigger Javascript when the element gets focus | No |
onhashchange |
trigger Javascript when the anchor part of URL is changed | Yes |
oninput |
trigger Javascript when an element gets user input | Yes |
onkeydown |
trigger Javascript when a user is pressing a key | No |
onkeypress |
trigger Javascript when a user pressed a key | No |
onkeyup |
trigger Javascript when a user releases a key | No |
onload |
trigger Javascript after the page is finished loading | No |
onmousedown |
trigger Javascript when a mouse button is pressed on an element | No |
onmousemove |
trigger Javascript when the mouse pointer is moving over an element | No |
onmouseout |
trigger Javascript when the mouse pointer moves out of an element | No |
onmouseover |
trigger Javascript when the mouse pointer moves over an element | No |
onmouseup |
trigger Javascript when a mouse button is released | No |
onoffline |
trigger Javascript when the browser starts to work offline | Yes |
ononline |
trigger Javascript when the browser starts to work online | Yes |
onpageshow |
trigger Javascript when a user navigates to a page | Yes |
onpaste |
trigger Javascript when the user pastes some content in an element | No |
onreset |
trigger Javascript when the Reset button is clicked | Yes |
onresize |
trigger Javascript when the browser window is resized | Yes |
onscroll |
trigger Javascript when an element's scrollbar is being scrolled | Yes |
onsearch |
trigger Javascript when the user types in <input="search"> | No |
onselect |
trigger Javascript when text is selected in an element | No |
onshow |
trigger Javascript when a <menu> element is shown as a context menu | Yes |
onsubmit |
trigger Javascript when a form is submitted | No |
ontoggle |
trigger Javascript when the user opens or closes the <details> element | Yes |
onunload |
trigger Javascript when page has unloaded or the browser window is closed | No |
onwheel |
trigger Javascript when the mouse wheel rolls up or down over an element | Yes |