Why have, for a few examples..
- onChange for <select>s
- onClick for <inputs>s
And what are the alternatives? For instance, when I do a CMS for a site, and the admin is in a section where they are editing a record for instance. On that form, I like to have a typical SUBMIT button, but also a second button which I usually call CANCEL that I would do the following on:
But apparently that's not considered valid XHTML.