View Full Version : Deprecated onEvents

02-26-2004, 09:32 PM
Why have, for a few examples..

- onChange for <select>s
- onClick for <inputs>s

..been deprecated?

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.

Alex Vincent
02-26-2004, 09:53 PM
AFAIK they aren't deprecated. In XHTML, though, all attributes, including the event handlers you mention, are lowercase.

They are present in XHTML 1.0 Strict... :confused:

02-26-2004, 10:37 PM
oh duh! lowercase! gah.. how silly of me.

thanks! :)