Dive into the archives.
- Inline JavaScripts Are Bad
Integrating AJAX elements into a website, while having to keep SEO importance in mind is tricky, somehow.
I was reading Hijax: Progressive Enhancement with Ajax, and found these advice useful:
JavaScript pseudo-protocol – Awful!
<a href=”javascript:window.open(’help.html’)”>contextual help</a>
Pointless link – Bad!
<a onclick=”window.open(’help.html’); return false;” href=”#”>contextual help</a>
Using the DOM – Better.
<a onclick=”window.open(this.getAttribute(’href’)); return false;” href=”help.html”>contextual help</a>
No inline JavaScript – Best!
<a [...]
