Intrinsic Events Module


 

Reference: *Intrinsic Events Module at the W3C

Elements in this Module

The Intrinsic Events Module declares only attributes.

Common Attributes Declared by this Module

The Intrinsic Events Module declares the following Common Attributes in the Events Attribute Collection:

Attributes Declared on Elements in Other Modules

The Intrinsic Events Module also declares additional attributes on elements in other Modules.

Attribute(s)Element(s)
onload, onunloadbody
onreset, onsubmitform
onselectinput, textarea
onchangeinput, select, textarea
onblur, onfocusa, area, button, input, label, select, textarea

Description

The Intrinsic Events Module declares a number of attributes specifying scripting code which is to be executed when a particular event occurs on an element. Most frequently, the scripting language used is JavaScript.

You should not take it for granted that every user agent will assume JavaScript is being used by default, so if you use any of these attributes you should always indicate the MIME type of the language in a Content-Script-Type HTTP header.

It is good practice not to use these attributes, however, and instead to include external scripts (via script elements) which add any handlers unobtrusively. This makes code more self-contained and also the XHTML is easier to maintain if it doesn't contain any events attributes.


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 16 May 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > XHTML 1.1 Indexes > Module Index (XHTML 1.1) > Intrinsic Events Module (XHTML 1.1)