View Single Post
Old 26-03-2004, 13:47   #7 (permalink)
spl1nter
Registered User
 
spl1nter's Avatar
 
Join Date: Mar 2004
Posts: 33
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).
  Reply With Quote