<h2>JavaScript?</h2> <p>JavaScript is user side scription language</p> <h3>onclick vs href</h3> <p>Be smart or die trying, a story by me about how I manage to remove inline codes in the best possible way</p> <p>Please visit <a href='http://adactio.com/atmedia2005/' title='The Behaviour Layer: Using JavaScript for good, not evil'><strong>http://adactio.com/atmedia2005/</strong></a></p> <pre> &lt;a href=&quot;javascript:window.open('page.html')&quot;&gt;my page&lt;/a&gt; Awful! &lt;a href=&quot;#&quot; onclick=&quot;window.open('page.html')&quot;&gt;my page&lt;/a&gt; Bad! &lt;a href=&quot;page.html&quot; onclick=&quot;window.open(this.href)&quot;&gt;my page&lt;/a&gt; Better &lt;a href=&quot;page.html&quot; class=&quot;popup&quot;&gt;my page&lt;/a&gt; Best! function doPopups() { if (!document.getElementsByTagName) return false; var links = document.getElementsByTagName(&quot;a&quot;); for (var i=0; i &lt; links.length; i++) { if (links[i].className.match(&quot;popup&quot;)) { links[i].onclick = function() { window.open(this.href); return false; } } } } window.onload = doPopups; </pre> <h4>See also</h4> <ul> <li><a href='http://www.robertnyman.com/2006/03/23/ajax-javascript-and-accessibility/' title='Robert Numan - Ajax Javascript and Accessibility'>Robert Numan</a></li> <li><a href='http://warpspire.com/journal/web-production/ajax-tamed-where-html-and-the-dom-meet/' title='Where HTML and DOM meet'>WarpSpire - Where HTML and DOM Meet</a></li> </ul>;2;1 .info .org Flash web design development varna