You really need to give us more information. Do you use CMS? Is this a website written from scratch?
You can set all the links on the page to open them in a new tab with a bit of javascript. Assuming your page has jQuery, you can do:
$(function() { $('a').prop('target', '_blank'); });
Demo: http://jsfiddle.net/9p4P2/
Or, if you are not using jQuery, you can use your own JavaScript:
var anchors = document.getElementsByTagName('a'); for (var i = 0; i < anchors.length; i++) { anchors[i].setAttribute('target', '_blank'); }
EDIT:
If you want only links related to other websites to open in new windows, you could:
$(function() { $("a[href^='http://']").prop('target', '_blank'); });
user2742648
source share