Monthly Archives: February 2009

A href = “#” with javascript event onclick issue on IE

I have this kind of link on my code :

< a href = '#' onclick='"")'>somelocation </a>

The problem with this is that whenever this is clicked in a MS IE browser, both the original link and the new window is executed.
I was expecting that only the new window will be displayed and refresh. To solve this, i’ve changed my code to :

<href = '#' onclick='"");return false;' >
somelocation <a>

That solves the issue.