Skip to content

Instantly share code, notes, and snippets.

@Victa
Forked from bastianallgeier/targetblank.js
Created May 27, 2012 08:29

Revisions

  1. @bastianallgeier bastianallgeier created this gist Apr 30, 2012.
    5 changes: 5 additions & 0 deletions targetblank.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    $(function() {

    $('a').not('[href*=clientdomain\\.com]').attr('target', '_blank');

    });