Skip to: content, navigation

Event Attributes

This reference covers event attributes that would be used to capture an event, and trigger an action with a client-side scripting language such as JavaScript.

A note of caution, though. You might intend to apply any of these inline event handlers like so:

<span onmouseover="showhoverhelp">view details</span> 

However, this is no longer a recommended technique, as it mixes the document’s structure and content (the HTML) with the behavior (JavaScript). The preferred option is to use unobtrusive JavaScript, which negates the need for inline event handlers of this type, and keeps the document structure and content layers separate from its behavior.

In this Section

User-contributed notes

There are no comments yet.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

Search