When using javascript in links onclick event to open windows or perform other navigation related tasks, always set href just like you would if javascript didn’t exist. If javascript is broken, links still work.

<a href="http://example.com/" onclick="doStuff(this.href);">Open</a>
See more posts about: All Categories