Event Attributes
Next ❯Colors
It's like Pre-defined functional Attributes used to trigger your defined function according to your need
- Well, Event Names itself helps you to guess easily, what it means
- Remember, Attributes are called only inside the Start Tag of an element
- Remember, All Event Attributes contains javascript as its value
Window Events Attribute
- turned_in_notWindow Events Attribute
Attribute HTML5 Description onafterprint 
Triggers after the web page is printed onbeforeprint 
Triggers before the web page is printed onbeforeunload 
Triggers before the web page loads onerror 
Triggers when an error occurs onhashchange 
Triggers when anchor part (start with "#") in web page url has changed onload Triggers after the web page loads onmessage 
Triggers when the message is triggered onoffline 
Triggers when the browser goes offline ononline 
Triggers when the browser goes online onpagehide 
Triggers when web page window is hidden onpageshow 
Triggers when web page window becomes visible onpopstate 
Triggers when the window's history changes onredo 
Triggers when the web page performs a redo onresize 
Triggers when the browser window is resized onstorage 
Triggers when a web page loads onunload Triggers when the browser window has been closed
Clipboard Events Attribute
- turned_in_notClipboard Events Attribute
Attribute HTML5 Description oncopy Triggers when user copies the content of an element oncut Triggers when user cuts the content of an element onpaste Triggers when user paste the content in an element
Drag Events Attribute
- turned_in_notDrag Events Attribute
Attribute HTML5 Description ondrag 
Triggers when an element is dragged ondragend 
Triggers at the end of a drag operation ondragenter 
Triggers when an element has been dragged to a valid drop target ondragleave 
Triggers when an element leaves a valid drop target ondragover 
Triggers when an element is being dragged over a valid drop target ondragstart 
Triggers at the start of a drag operation ondrop 
Triggers when dragged element is being dropped
Form Events Attribute
- turned_in_notForm Events Attribute
Attribute HTML5 Description onblur Triggers when a window loses focus onchange Triggers when an element changes oncontextmenu 
Runs when a context menu is triggered onfocus Triggers when a window gets focus oninput 
Triggers when form gets user input oninvalid 
Triggers when an element is invalid onreset 
Triggers when a form gets reset onsearch Triggers when the user type something on a search field onselect Triggers when some text has been selected in an element onsubmit Triggers when a form is submitted
Keyboard Events Attribute
- turned_in_notKeyboard Events Attribute
Attribute HTML5 Description onkeydown Triggers when a user is pressing a key onkeypress Triggers when a user presses a key onkeyup Triggers when a user releases a key
Mouse Events Attribute
- turned_in_notMouse Events Attribute
Attribute HTML5 Description onclick Triggers on a mouse click on an element ondblclick Triggers on a mouse double-click on an element onmousedown Triggers when a mouse button is pressed down on an element onmousemove Triggers when the mouse pointer is moving onmouseout Triggers when the mouse pointer moves out of an element onmouseover Triggers when the mouse pointer moves over an element onmouseup Triggers when the mouse button is released over an element onwheel 
Triggers when mouse wheel rolls over an element onscroll 
Triggers when an element's scrollbar is being scrolled
Media Events Attribute
- turned_in_notMedia Events Attribute
Attribute HTML5 Description onabort Triggers on an abort oncanplay 
Triggers when a file is ready to start playing oncanplaythrough 
Triggers when a media is fully ready to play oncuechange 
Triggers when the cue changes in <track>elementondurationchange 
Triggers when the length of a media is changed onemptied 
Triggers when a media resource suddenly becomes unavailable onended 
Triggers when the media has reaches to the end onerror 
Triggers when an error occurs to the file which is being loaded onloadeddata 
Triggers when media data is loaded onloadedmetadata 
Triggers when the duration and other media data of a media is loaded onloadstart 
Triggers when the browser just starts loading the media data onpause 
Triggers when the media is paused onplay 
Triggers when media is ready to start playing onplaying 
Triggers when media actually has started playing onprogress 
Triggers when the browser fetching the media data onratechange 
Triggers when media playback rate changes onseeked 
Triggers when the seeking attribute of a media is false, and the seeking has ended onseeking 
Triggers when the seeking attribute of a media is true, and the seeking has begun onstalled 
Triggers when browser is unable to fetch the media data onsuspend 
Triggers when fetching of media data is stopped before it's fully loaded ontimeupdate 
Triggers when the media playing position has changed onvolumechange 
Triggers when media volume changes onwaiting 
Triggers when media has paused, but is expected to resume
Touch Events Attribute
- turned_in_notTouch Events Attribute
Attribute HTML5 Description ontouchstart Triggers when a finger is placed on a touch screen ontouchmove Triggers when a finger is dragged/moved across the screen ontouchcancel Triggers when the touch is interrupted ontouchend Triggers when a finger is removed from a touch screen
❮ Prev Attribute List
Next ❯Colors






So,