Browser Compatibility Problems - OnClick not functioning in FireFox but okay in IE

Just to update you guys, assuming you have the code below:

< ... onClick="AddNumbers(1);"  ... />

Most of the time this is how you do it? It works fine in IE. Who cares right? When you try on FireFox, it doesn't work.

So make sure you always return false like the code below in order for all browsers to work.

< ... onClick="AddNumbers(1); return false;" .... />

Have fun.

Published Tuesday, January 30, 2007 10:40 PM by chuawenching
Filed under:

Comments

# Terry

Tuesday, July 22, 2008 1:06 AM by Shaun

ccd7b50411dcd35d501d354abbea7c5e

<a href="njdokj.info/.../ccd7b50411dcd35d501d354abbea7c5e">">njdokj.info/.../ccd7b50411dcd35d501d354abbea7c5e"> njdokj.info/.../ccd7b50411dcd35d501d354abbea7c5e </a>

njdokj.info/.../ccd7b50411dcd35d501d354abbea7c5e

[url]njdokj.info/.../ccd7b50411dcd35d501d354abbea7c5e[url]