VanDragt.com

Commentary on Digital Media and Usability

Improving someone’s code

without comments

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]

Written by Sander

January 23rd, 2008 at 2:46 pm

Posted in Uncategorized

Tagged with ,