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;"

Keywords: internet explorer, ie7, ie6, bug, javascript source code example, javascript

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
Author: Anonym119785
[Report] 02/27/2009 09:52
Thanx a Lot......
Author: Anonym122651
[Report] 03/15/2009 03:54
THANKS
Author: Anonym135809
[Report] 05/22/2009 07:33
Thanks! return false; suddenly stopped working in this script I am working on and I have no idea why. This works perfectly.
Add Entry
 
TOPlist