Skip to content

Instantly share code, notes, and snippets.

@theperrygroup
Created April 8, 2016 18:42
Show Gist options
  • Save theperrygroup/1ad883f4a3416f21324b0a3397d1e322 to your computer and use it in GitHub Desktop.
Save theperrygroup/1ad883f4a3416f21324b0a3397d1e322 to your computer and use it in GitHub Desktop.
$('a[href*="//"]:not([href*="'+ location.hostname +'"])').attr('target','_blank');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment