Author: Anonym40513
[Report] 11/27/2007 11:49
Instead of:
onclick="yourCodeHere(); return false;"
Use this:
onclick="yourCodeHere(); event.returnValue=false; return false;"
onclick="yourCodeHere(); return false;"
Use this:
onclick="yourCodeHere(); event.returnValue=false; return false;"
Keywords: internet explorer, ie7, ie6, bug, javascript source code example, javascript

So i changed the order and now its working!
onclick="event.returnValue=false; yourCodeHere(); return false;"
Thanks again!
IE7 - workaround", which is contrary to years of practical experience
and so almost certainly untrue. Lets be very clear about this;
clicking the link in the following simple HMML page does not result in
navigation on IE 6 or 7 (with javascript enabled, of course).
<html>
<head>
<title></title>
</head>
<body>
<a href="http://www.google.com/" onclick="return false;">
Link to google
</a>
</body>
</html>
Some random assertion to the contrary does not change that, and in
fact seriously being into question the competence of the person making
that assertion.
There is a bug in IE 6 that is intermittent. The people above are perfectly sane and very frustrated like I am from having to chase down the solution to this problem. It appears on some installations of IE6/7, and in some circumstances only. I have a page where 2 different elements use the same onclick code, one element works as expected and one doesn't. Thanks to the fix above, they both work fine.