But what about people who cannot use Javascript or have it turned off?
This is what I use:
Code:
function targetBlank (url) {
blankWin = window.open(url,'_blank','menubar=yes,toolbar=yes,location=yes,directories=yes,fullscreen=no,titlebar=yes,hotkeys=yes,status=yes,scrollbars=yes,resizable=yes');
}
That's the javascript code and this is the link:
Code:
<a href='http://site.com' onclick='targetBlank(this.href);return false;'>Site.com</a>
This means that even if Javascript is disabled, the link still works (only not in a new window, but this obviously cannot be helped).