Web Analytics Made Easy -
StatCounter Deprecated onEvents - CodingForum

Announcement

Collapse
No announcement yet.

Deprecated onEvents

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Deprecated onEvents

    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.
    Last edited by coder_seth; Feb 26, 2004, 03:42 PM.

  • #2
    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...
    "The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
    June 30, 2001
    author, ES-Membrane project (Github Pages site)
    author, Verbosio prototype XML Editor
    author, JavaScript Developer's Dictionary
    https://alexvincent.us/blog

    Comment


    • #3
      oh duh! lowercase! gah.. how silly of me.

      thanks!

      Comment

      Working...
      X