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.
- 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.
Comment