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