James H. Zisch - Computer Services

Support : Guides

 

Javascript® Events - HTML Intrinsics

In Javascript, an "Event" is an occurrence of an action. "Handler" functions may be assigned to an event causing it to processed when the event occurs. Handlers are defined to the specific "Object" associated with the event. The list of detectable events are browser specific; however, the W3C (Worldwide Web Consortium) has established a standard set of detectable events for each HTML element; referred to as "Intrinsics". Also refer to the DOM (Document Object Model).

Each HTML Element supports a specific subset of the Intrinsics listed below.

DOM Intrinsics List

Event Introduced
onabort DOM 2
onblur DOM 2
onchange DOM 2
onclick DOM 2
onerror DOM 2
onfocus DOM 2
onkeydown DOM 3
onkeypress DOM 3
onkeyup DOM 3
onload DOM 2
onmousedown DOM 2
onmousemove DOM 2
onmouseout DOM 2
onmouseup DOM 2
onreset DOM 2
onresize DOM 2
onselect DOM 2
onsubmit DOM 2
onunload DOM 2

Document

onload when finishing load of a page or frameset
onunload when user exits a document

Field

onblur when loosing focus
onchange when loosing focus and value has changed
onfocus when receiving focus

Mouse

onmouseover when mouse moves over an object
onmouseout when mouse moves out an object
onselect when text is selected (select, text or textarea)
onclick when click within a form
onsubmit when user submits a form

NOTE: Refer to W3C's (World Wide Web Consortium) "Intrinsics" (Chapter 18 - Scripts) in the most current HTML approved standard for aspects specific to web device/browser scripting as it pertains to HTML elements. (Javascript® is a registered trademark of Netscape Communications Corp.; JScript® is a registered trademark of Microsoft Corp.)