<script> var anchors = document.getElementsByTagName("a"); for(i=0;i<anchors.length;i++){ var anchor_item = anchors[i]; anchor_item.target="_blank"; } </script>