Html5 events attributes snippets
Jump to navigation
Jump to search
<?xml version="1.0"?> <!-- html5_events_attributes.xml $Revision: 8/8/2010 --> <!-- DO NOT COPY THIS FILE FROM THE WIKI MAIN PAGE! BUT FROM THE EDIT TAB (OR THE VIEW SOURCE IF YOU ARE NOT LOGGIN IN) ONLY THE PART WITHIN: <pre> </pre> --> <!-- USAGE: Copy and import this file in the snippets left panel menu. --> <snippets> <branch title="html5_Window_Events"> <leaf type="insert" title="onafterprint" tooltip="Script to be run after the document is printed"> <before>onafterprint="</before> <after>"</after> </leaf> <leaf type="insert" title="onbeforeprint" tooltip="Script to be run before the document is printed"> <before>onbeforeprint="</before> <after>"</after> </leaf> <leaf type="insert" title="onbeforeonload" tooltip="Script to be run before the document loads"> <before>onbeforeonload="</before> <after>"</after> </leaf> <leaf type="insert" title="onerror" tooltip="Script to be run when an error occur"> <before>onerror="</before> <after>"</after> </leaf> <leaf type="insert" title="onhaschange" tooltip="Script to be run when the document has change"> <before>onhaschange="</before> <after>"</after> </leaf> <leaf type="insert" title="onmessage" tooltip="Script to be run when the message is triggered"> <before>onmessage="</before> <after>"</after> </leaf> <leaf type="insert" title="onoffline" tooltip="Script to be run when the document goes offline"> <before>onoffline="</before> <after>"</after> </leaf> <leaf type="insert" title="ononline" tooltip="Script to be run when the document comes online"> <before>ononline="</before> <after>"</after> </leaf> <leaf type="insert" title="onpagehide" tooltip="Script to be run when the window is hidden"> <before>onpagehide="</before> <after>"</after> </leaf> <leaf type="insert" title="onpageshow" tooltip="Script to be run when the window becomes visible"> <before>onpageshow="</before> <after>"</after> </leaf> <leaf type="insert" title="onpopstate" tooltip="Script to be run when the window's history changes"> <before>onpopstate="</before> <after>"</after> </leaf> <leaf type="insert" title="onredo" tooltip="Script to be run when the document performs a redo"> <before>onredo="</before> <after>"</after> </leaf> <leaf type="insert" title="onresize" tooltip="Script to be run when the window is resized"> <before>onresize="</before> <after>"</after> </leaf> <leaf type="insert" title="onstorage" tooltip="Script to be run when a document loads"> <before>onstorage="</before> <after>"</after> </leaf> <leaf type="insert" title="onundo" tooltip="Script to be run when a document performs an undo"> <before>onundo="</before> <after>"</after> </leaf> <leaf type="insert" title="onunload" tooltip="Script to be run when the user leaves the document"> <before>onunload="</before> <after>"</after> </leaf> </branch> <branch title="html5_Form_Events"> <leaf type="insert" title="oncontextmenu" tooltip="Script to be run when a context menu is triggered"> <before>oncontextmenu="</before> <after>"</after> </leaf> <leaf type="insert" title="onformchange" tooltip="Script to be run when a form changes"> <before>onformchange="</before> <after>"</after> </leaf> <leaf type="insert" title="onforminput" tooltip="Script to be run when a form gets user input"> <before>onforminput="</before> <after>"</after> </leaf> <leaf type="insert" title="oninput" tooltip="Script to be run when an element gets user input"> <before>oninput="</before> <after>"</after> </leaf> <leaf type="insert" title="oninvalid" tooltip="Script to be run when an element is invalid"> <before>oninvalid="</before> <after>"</after> </leaf> </branch> <branch title="html5_Mouse_Events"> <leaf type="insert" title="ondrag" tooltip="Script to be run when an element is dragged"> <before>ondrag="</before> <after>"</after> </leaf> <leaf type="insert" title="ondragend" tooltip="Script to be run at the end of a drag operation"> <before>ondragend="</before> <after>"</after> </leaf> <leaf type="insert" title="ondragenter" tooltip="Script to be run when an element has been dragged to a valid drop target"> <before>ondragenter="</before> <after>"</after> </leaf> <leaf type="insert" title="ondragleave" tooltip="Script to be run when an element leaves a valid drop target"> <before>ondragleave="</before> <after>"</after> </leaf> <leaf type="insert" title="ondragover" tooltip="Script to be run when an element is being dragged over a valid drop target"> <before>ondragover="</before> <after>"</after> </leaf> <leaf type="insert" title="ondragstart" tooltip="Script to be run at the start of a drag operation"> <before>ondragstart="</before> <after>"</after> </leaf> <leaf type="insert" title="ondrop" tooltip="Script to be run when dragged element is being dropped"> <before>ondrop="</before> <after>"</after> </leaf> <leaf type="insert" title="onmousewheel" tooltip="Script to be run when the mouse wheel is being rotated"> <before>onmousewheel="</before> <after>"</after> </leaf> <leaf type="insert" title="onscroll" tooltip="Script to be run when an element's scrollbar is being scrolled"> <before>onscroll="</before> <after>"</after> </leaf> </branch> <branch title="html5_Media_Events"> <leaf type="insert" title="oncanplay" tooltip="Script to be run when media can start play, but might has to stop for buffering"> <before>oncanplay="</before> <after>"</after> </leaf> <leaf type="insert" title="oncanplaythrough" tooltip="Script to be run when media can be played to the end, without stopping for buffering"> <before>oncanplaythrough="</before> <after>"</after> </leaf> <leaf type="insert" title="ondurationchange" tooltip="Script to be run when the length of the media is changed"> <before>ondurationchange="</before> <after>"</after> </leaf> <leaf type="insert" title="onemptied" tooltip="Script to be run when a media resource element suddenly becomes empty (network errors, errors on load etc.)"> <before>onemptied="</before> <after>"</after> </leaf> <leaf type="insert" title="onended" tooltip="Script to be run when media has reach the end"> <before>onended="</before> <after>"</after> </leaf> <leaf type="insert" title="onerror" tooltip="Script to be run when an error occurs during the loading of an element"> <before>onerror="</before> <after>"</after> </leaf> <leaf type="insert" title="onloadeddata" tooltip="Script to be run when media data is loaded"> <before>onloadeddata="</before> <after>"</after> </leaf> <leaf type="insert" title="onloadedmetadata" tooltip="Script to be run when the duration and other media data of a media element is loaded"> <before>onloadedmetadata="</before> <after>"</after> </leaf> <leaf type="insert" title="onloadstart" tooltip="Script to be run when the browser starts to load the media data"> <before>onloadstart="</before> <after>"</after> </leaf> <leaf type="insert" title="onpause" tooltip="Script to be run when media data is paused"> <before>onpause="</before> <after>"</after> </leaf> <leaf type="insert" title="onplay" tooltip="Script to be run when media data is going to start playing"> <before>onplay="</before> <after>"</after> </leaf> <leaf type="insert" title="onplaying" tooltip="Script to be run when media data has start playing"> <before>onplaying="</before> <after>"</after> </leaf> <leaf type="insert" title="onprogress" tooltip="Script to be run when the browser is fetching the media data"> <before>onprogress="</before> <after>"</after> </leaf> <leaf type="insert" title="onratechange" tooltip="Script to be run when the media data's playing rate has changed"> <before>onratechange="</before> <after>"</after> </leaf> <leaf type="insert" title="onreadystatechange" tooltip="Script to be run when the ready-state changes"> <before>onreadystatechange="</before> <after>"</after> </leaf> <leaf type="insert" title="onseeked" tooltip="Script to be run when a media element's seeking attribute is no longer true, and the seeking has ended"> <before>onseeked="</before> <after>"</after> </leaf> <leaf type="insert" title="onseeking" tooltip="Script to be run when a media element's seeking attribute is true, and the seeking has begun"> <before>onseeking="</before> <after>"</after> </leaf> <leaf type="insert" title="onstalled" tooltip="Script to be run when there is an error in fetching media data (stalled)"> <before>onstalled="</before> <after>"</after> </leaf> <leaf type="insert" title="onsuspend" tooltip="Script to be run when the browser has been fetching media data, but stopped before the entire media file was fetched"> <before>onsuspend="</before> <after>"</after> </leaf> <leaf type="insert" title="ontimeupdate" tooltip="Script to be run when media changes its playing position"> <before>ontimeupdate="</before> <after>"</after> </leaf> <leaf type="insert" title="onvolumechange" tooltip="Script to be run when media changes the volume, also when volume is set to `mute`"> <before>="</before> <after>"</after> </leaf> <leaf type="insert" title="onwaiting" tooltip="Script to be run when media has stopped playing, but is expected to resume"> <before>onwaiting="</before> <after>"</after> </leaf> </branch> </snippets>