However, it is sometimes (maybe all the time) better not to use it not only because it causes problems in IE, but also because it is not the recommended way and not best practice. If you want to avoid following the link, set the href to a local fall-back page and in the onclick, have "return false" at the end. You will achieve the same effect with the addition that it won't break if the user has javascript turned off. See this link.
Comment