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