Return to Snippet

Revision: 29329
at July 27, 2010 05:56 by batfan


Initial Code
$(document).ready(function() {

  $("a").filter(function() {
    return this.hostname && this.hostname !== location.hostname;
  }).attr('target', '_blank');

});

Initial URL


Initial Description


Initial Title
Open All Off-site Links in a New Window

Initial Tags
jquery, links

Initial Language
jQuery