Skip to main content
added 80 characters in body
Source Link

Global function to open external links in a new window:

$(function(){ // document ready $("a").filter(function () {   return this.hostname && this.hostname !== location.hostname;  }).each(function () {   $(this).attr({   target: "_blank",   title: "Visit " + this.href + " (click to open in a new window)"   }); });  }); 

Global function to open external links in a new window:

$("a").filter(function () { return this.hostname && this.hostname !== location.hostname; }).each(function () { $(this).attr({ target: "_blank", title: "Visit " + this.href + " (click to open in a new window)" }); }); 

Global function to open external links in a new window:

$(function(){ // document ready $("a").filter(function () {   return this.hostname && this.hostname !== location.hostname;  }).each(function () {   $(this).attr({   target: "_blank",   title: "Visit " + this.href + " (click to open in a new window)"   }); });  }); 
Source Link

Global function to open external links in a new window:

$("a").filter(function () { return this.hostname && this.hostname !== location.hostname; }).each(function () { $(this).attr({ target: "_blank", title: "Visit " + this.href + " (click to open in a new window)" }); });