...

View Full Version : Deprecated onEvents



coder_seth
02-26-2004, 08: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:

onClick="document.location='javascript:history.back()';"

But apparently that's not considered valid XHTML.

Alex Vincent
02-26-2004, 08: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:

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

thanks! :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum