Hi Paul
I came across this code:
function formatLinks() {
var fileLink;
if (document.getElementById('ContentBody') && document.getElementById('ContentBody').getElementsByTagName('a')) {
for (var i = 0; fileLink = document.getElementById('ContentBody').getElementsByTagName('a')[i]; i++) {
if (fileLink.href.match(/^(http|https)/) && (fileLink.href.indexOf(location.hostname) == -1)) {
fileLink.setAttribute('target', '_blank');
}
}
}
}
var oldonload = window.onload;
if (typeof window.onload != 'function') { window.onload = function() { formatLinks(); }; }
else {
window.onload = function() {
if (oldonload) { oldonload(); }
formatLinks();
}
}
This would be ideal for my use as I am referring to content on my shopping forum and off it. Internal links don't need a new window but offsite do. The above code is able to do that but needs adjusting for minibb. Bit beyond me. Are you able to use it or adjust it?
Regards
Edit: Come to think of it I could write a new tag couldn't I for this?