jQuery open external links in new windowTo open external links in new window, use the following jQuery JavaScript: $("a[href^='http:']").not("[href*='" + window.location.hostname + "']").attr('target','_blank');Comments Leave a ReplyComment:Name (optional):Post Comment
Comments
Leave a Reply