I recent ran into an interesting IE bug involving the following bit of html code:
I honestly did not write this one but I will leave names out of this to protect the innocent =)
It took us a good amount of time to realize what the issue was with IE. It turns out that the void(0) function was preventing the onclick event to fire.
Although it may not be pretty, this is what we ended up doing and it appears to be cross-browser friendly:
<a href="<?=$_SERVER['PHP_SELF'];>#" onclick="dosomething(); return false;">click me</a>
<a href="[alternative link]" onclick="dosomething(); return false;">click me</a>
dosomething() will execute and the return false will prevent the browser from going to the [alternative link].
Anyway, I hope this helps someone out there in the universe.