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