JavaScript?

JavaScript is user side scription language

onclick vs href

Be smart or die trying, a story by me about how I manage to remove inline codes in the best possible way

Please visit http://adactio.com/atmedia2005/

<a href="javascript:window.open('page.html')">my page</a> Awful!
<a href="#" onclick="window.open('page.html')">my page</a> Bad!
<a href="page.html" onclick="window.open(this.href)">my page</a> Better
<a href="page.html" class="popup">my page</a> Best!
function doPopups() {
  if (!document.getElementsByTagName) return false;
  var links = document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("popup")) {
      links[i].onclick = function() {
        window.open(this.href);
        return false;
      }
    }
  }
}
window.onload = doPopups;

See also

.info .org Flash web design development varna