Tag Archives: javascript
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>
Websites Must Function Without Javascript
Websites need to function without javascript enabled. AJAX and Web 2.0 are fine tools, but don’t abandon the basics. The ability to interact with a website without javascript means you can easily unit test your website just like you would … Continue reading