HTML and CSS Reference
In-Depth Information
tremely long statements across several lines. You also should take care
to use entities for embedded double quotes in the statements, to avoid
syntax errors when processing the attribute values. Standard event handler attributes
Table 12-1 presents the current set of event handlers as tag attributes.
Most are supported by the popular browsers, which also support a vari-
ety of nonstandard event handlers (tagged with asterisks in the table).
We put the event handlers into two categories: user related and docu-
ment related. The user-related ones are the mouse and keyboard events
that occur when the user handles either device on the computer. User-
related events are quite ubiquitous, appearing as standard attributes in
nearly all the standard tags (even though they may not yet be suppor-
ted by any browser), so we don't list their associated tags in Table 12-1 .
Instead, we'll tell you which tags do not accept these event attributes:
<applet> , <base> , <basefont> , <bdo> , <br> , <font> , <frame> , <frameset> ,
<head> , <html> , <iframe> , <isindex> , <meta> , <param> , <script> , <style> ,
and <title> .
Table 12-1. Event handlers
Event hand-
onAbort [*]
<a> , <area> , <body> , <button> , <frameset> , <input> , <la-
bel> , <select> , <textarea>
Search WWH ::

Custom Search