Coda Clips

jQuery open links in external window

// open links in external window
$("a[@href^=http]").each(function() {
  if(this.href.indexOf(location.hostname) == -1) {
    $(this).click(function(){window.open(this.href);return false;});
  }
});

Added to by Davy Van Den Bremt

Install Clip


Sponsored Links: