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