Javascript onclick return false does not work in IE6, IE7 - workaround

Author: Anonym40513
[Report] 11/27/2007 11:49
Instead of:

onclick="yourCodeHere(); return false;"

Use this:

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

More on: javascript, javascript source code example, bug, ie6, ie7, internet explorer

Comments
Author: Anonym73691
[Report] 04/04/2008 16:12
thx guy, it works, you save me :D
Author: Anonym77484
[Report] 04/19/2008 22:22
Yep, it worked here too. Thanks. RTB from Texas.
Author: Anonym78881
[Report] 04/25/2008 20:21
Oh... you are a life saver.
Author: Anonym88693
[Report] 06/29/2008 08:08
Thank you Thank you Thank you!!! from Singapore
Author: Anonym77923
[Report] 08/06/2008 23:02
thank you from Dealermade.com
Author: Anonym83954
[Report] 09/29/2008 15:40
thanks from paris!!!!
Author: Anonym83993
[Report] 09/29/2008 17:35
*Echoes* everyone's praises! Thank you from London!!!!!!
Author: Anonym86993
[Report] 10/15/2008 12:02
You are the best! I spent a hour trying to fixed not working return false javascript for image swapping...
Author: Anonym87005
[Report] 10/15/2008 12:53
Thanks from India you are a real genuis man Hatsoff to you
Add Entry

 

TOPlist