Amasan – Common sense 2.0

Commentary on Digital Media and Usability

Improving someone’s code

January 23rd, 2008 ·

Don’t call your submit button ’submit’ if you want to change the submit event with Javascript:

If you do, the browser (please read “Firefox 1.5 or IE 6″ – that’s what I tested at the moment) will consider submit is an object. And an object is not a function (although you might enjoy later on the paradox that a function is an object).

Source [webprodevelopment.com]

→ Add Comment Tags:··



0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment