Friday, July 9, 2010

Javascript onclick return false does not work in IE6, IE7

Workaroud:

Instead of:

onclick="yourFunction(); return false;"

Use this:

onclick="yourFunction(); event.returnValue=false; return false;"

No comments: