Not really. You could put a script on each page, it could be external, so you would need only one script and if you already have a script that runs on every page, this could simply be added to it:
Code:
;(function(){
var re = /example\.htm[$\?#]/;
function targetlink(e){
e = e || event;
var t = e.target || e.srcElement, href;
if(t.href && re.test(href = t.href) || t.parentNode.href && re.test(href = t.parentNode.href)){
window.open(href, '_blank')
e.preventDefault && e.preventDefault();
e.returnValue = false;
}
}
if (document.addEventListener){
document.addEventListener('click', targetlink, false);
}
else if (document.attachEvent){
document.attachEvent('onclick', targetlink);
}
})();
Just change example\.htm$ in the above to the actual name of the page, use the down slash as shown for the . character and the bracketed [$\?#] at the end to indicate the end of the filename.
Of course this will only work if javascript is enabled. Most (like 99%) people do have that.
Bookmarks