tags:

views:

51

answers:

1

When specifying a DOM event name in Javascript, does casing matter? For example, which of the following will work reliably:

  1. onMouseOver
  2. onmouseover
  3. Both are ok. Casing does not matter.
  4. It's more complicated than that....
+2  A: 

It depends. It is case sensitive in XHTML. Plus, Javascript is always case sensitive.

Seems to be a duplicate.

Otávio Décio