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