Tag Archives: href

Always Set Href In Javascripted Links

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>

Posted in Manifesto | Tagged , , , | Comments Off