Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Open any external links in a new tab rather than take user away from site.
- jQuery(document).ready(function ($) {
- $(document.links).filter(function() {
- return this.hostname !== window.location.hostname;
- }).attr('target', '_blank');
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement