onclick or onClick?

Because some browsers (depending on the DOCTYPE) are tolerant of the inline onClick="something();" attribute…it seems to have spread a bit, even into JavaScript questions where it doesn’t work, since case matters.

Also, specifically to stackoverflow…people using it in questions…well, most of the time they wouldn’t be asking a question if their code worked 🙂

Leave a Comment