Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('a').each(function() {
- var a = new RegExp('/' + window.location.host + '/');
- if (!a.test(this.href)) {
- $(this).attr('target','_blank');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement