Document Element |
oncopy | The script to be run when the user copies the content of an element. |
<!-- Executes go() function -->
<h2 oncopy="go()">Heading Text</h2>
|
oncut | The script to be run when the user cuts the content of an element. |
<!-- Executes go() function -->
<h2 oncut="go()">Heading Text</h2>
|
onpaste | The script to be run when the user pastes some content into an element. |
<!-- Executes go() function -->
<h2 onpaste="go()">Heading Text</h2>
|
Drag and Drop |
ondrag | The script to be run when an element is dragged. |
<!-- Executes go() function -->
<h2 ondrag="go()">Heading Text</h2>
|
ondragend | The script to be run when an element has stopped being dragged. |
<!-- Executes go() function -->
<h2 ondragend="go()">Heading Text</h2>
|
ondragenter | The script to be run when an element has been dragged to a valid drop target. |
<!-- Executes go() function -->
<h2 ondragenter="go()">Heading Text</h2>
|
ondragleave | The script to be run when an element leaves a valid drop target. |
<!-- Executes go() function -->
<h2 ondragleave="go()">Heading Text</h2>
|
ondragover | The script to be run when an element is being dragged over a valid drop target. |
<!-- Executes go() function -->
<h2 ondragover="go()">Heading Text</h2>
|
ondragstart | The script to be run at the start of a drag operation. |
<!-- Executes go() function -->
<h2 ondragstart="go()">Heading Text</h2>
|
ondrop | The script to be run when a dragged element is being dropped. |
<!-- Executes go() function -->
<h2 ondrop="go()">Heading Text</h2>
|
Form |
onblur | The script to be run when the element loses focus. |
<!-- Executes go() function -->
<h2 onblur="go()">Heading Text</h2>
|
onchange | The script to be run when object changed and attempt to leave field. |
<!-- Executes go() function -->
<h2 onchange="go()">Heading Text</h2>
|
oncontextmenu | The script to be run when a context menu is triggered. |
<!-- Executes go() function -->
<h2 oncontextmenu="go()">Heading Text</h2>
|
onfocus | The script to be run when the element gets focus. |
<!-- Executes go() function -->
<h2 onfocus="go()">Heading Text</h2>
|
oninput | The script to be run when an element gets user input. |
<!-- Executes go() function -->
<h2 oninput="go()">Heading Text</h2>
|
oninvalid | The script to be run when an element is invalid. |
<!-- Executes go() function -->
<h2 oninvalid="go()">Heading Text</h2>
|
onreset | The script to be run when a dragged element is being dropped. |
<!-- Executes go() function -->
<h2 onreset="go()">Heading Text</h2>
|
onselect | The script to be run when some or all of the contents of an object are selected. |
<!-- Executes go() function -->
<h2 onselect="go()">Heading Text</h2>
|
onsubmit | The script to be run when a form is submitted. |
<!-- Executes go() function -->
<h2 onsubmit="go()">Heading Text</h2>
|
Keyboard |
onkeydown | The script to be run when an element is in focus and keyboard key is pressed down. |
<!-- Executes go() function -->
<h2 onkeydown="go()">Heading Text</h2>
|
onkeypress | The script to be run when an element is in focus and keyboard key is pressed down and released. |
<!-- Executes go() function -->
<h2 onkeypress="go()">Heading Text</h2>
|
onkeyup | The script to be run when an element is in focus and keyboard key is released. |
<!-- Executes go() function -->
<h2 onkeyup="go()">Heading Text</h2>
|
Media |
onabort | The script code to be run on abort. |
<!-- Executes go() function -->
<h2 onabort="go()">Heading Text</h2>
|
oncanplay | The script to be run when a file has buffered enough so it is ready to start playing. |
<!-- Executes go() function -->
<h2 oncanplay="go()">Heading Text</h2>
|
oncanplaythrough | The script to be run when a file can be played all the way to the end without further need of buffering. |
<!-- Executes go() function -->
<h2 oncanplaythrough="go()">Heading Text</h2>
|
oncuechange | The script to be run when the cue changes when using the track element. |
<!-- Executes go() function -->
<h2 oncuechange="go()">Heading Text</h2>
|
ondurationchange | The script to be run when the length of the media is changed. |
<!-- Executes go() function -->
<h2 ondurationchange="go()">Heading Text</h2>
|
onemptied | The script to be run when a media resource element suddenly becomes empty, usually due to an error. |
<!-- Executes go() function -->
<h2 onemptied="go()">Heading Text</h2>
|
onended | The script to be run when the media has reach the end. |
<!-- Executes go() function -->
<h2 onended="go()">Heading Text</h2>
|
onloadeddata | The script to be run when media data is loaded and playback can start. |
<!-- Executes go() function -->
<h2 onloadeddata="go()">Heading Text</h2>
|
onloadedmetadata | The script to be run when metadata has been loaded. |
<!-- Executes go() function -->
<h2 onloadedmetadata="go()">Heading Text</h2>
|
onloadstart | The script to be run whenthe media resource has started loading. |
<!-- Executes go() function -->
<h2 onloadstart="go()">Heading Text</h2>
|
onpause | The script to be run when the media resource has been paused. |
<!-- Executes go() function -->
<h2 onpause="go()">Heading Text</h2>
|
onplay | The script to be run when the media resource starts playback. |
<!-- Executes go() function -->
<h2 onplay="go()">Heading Text</h2>
|
onplaying | The script to be run when when playback has already begun. |
<!-- Executes go() function -->
<h2 onplaying="go()">Heading Text</h2>
|
onprogress | The script to be run when the browser is fetching the media data. |
<!-- Executes go() function -->
<h2 onprogress="go()">Heading Text</h2>
|
onratechange | The script to be run when the playback rate changes. |
<!-- Executes go() function -->
<h2 onratechange="go()">Heading Text</h2>
|
onseeked | The script to be run when the seeking attribute is set to false indicating that seeking has finished. |
<!-- Executes go() function -->
<h2 onseeked="go()">Heading Text</h2>
|
onseeking | The script to be run when the seeking attribute is set to true indicating that seeking is currently active. |
<!-- Executes go() function -->
<h2 onseeking="go()">Heading Text</h2>
|
onstalled | The script to be run when the browser is unable to continue fetching media data. |
<!-- Executes go() function -->
<h2 onstalled="go()">Heading Text</h2>
|
onsuspend | The script to be run when media data has stopped before being completely loaded. |
<!-- Executes go() function -->
<h2 onsuspend="go()">Heading Text</h2>
|
ontimeupdate | The script to be run when the media resources current playback position has changed. |
<!-- Executes go() function -->
<h2 ontimeupdate="go()">Heading Text</h2>
|
onvolumechange | The script to be run when the volume has changed or been muted. |
<!-- Executes go() function -->
<h2 onvolumechange="go()">Heading Text</h2>
|
onwaiting | The script to be run when the media resource has paused but is expected to resume. |
<!-- Executes go() function -->
<h2 onwaiting="go()">Heading Text</h2>
|
Mouse |
onclick | The script to be run when when a mouse is clicked on an element. |
<!-- Executes go() function -->
<h2 onclick="go()">Heading Text</h2>
|
ondblclick | The script to be run when a mouse is double clicked on an element. |
<!-- Executes go() function -->
<h2 ondblclick="go()">Heading Text</h2>
|
onmousedown | The script to be run when he mouse button is pressed down while the cursor is over an element. |
<!-- Executes go() function -->
<h2 onmousedown="go()">Heading Text</h2>
|
onmousemove | The script to be run when the mouse button is moved. |
<!-- Executes go() function -->
<h2 onmousemove="go()">Heading Text</h2>
|
onmouseout | The script to be run when the mouse cursor moves off an element. |
<!-- Executes go() function -->
<h2 onmouseout="go()">Heading Text</h2>
|
onmouseover | The script to be run when the mouse cursor moves over an element. |
<!-- Executes go() function -->
<h2 onmouseover="go()">Heading Text</h2>
|
onmouseup | The script to be run when the mouse button is released while the cursor is over the element. |
<!-- Executes go() function -->
<h2 onmouseup="go()">Heading Text</h2>
|
onwheel | The script to be run when the mouse wheel rolls up or down over an element. |
<!-- Executes go() function -->
<h2 onwheel="go()">Heading Text</h2>
|
Scroll |
onscroll | The script code to be run when the scrollbar of an element is being scrolled. |
<!-- Executes go() function -->
<h2 onscroll="go()">Heading Text</h2>
|
Window - NONE |