Re: New Browser Window Link problem

by Andrew McFarland <aamcf(at)aamcf.co.uk>

 Date:  Tue, 09 Jul 2002 22:51:23 +0100
 To:  hwg-techniques(at)mail.hwg.org
 References:  clearpages clearpages2
  todo: View Thread, Original
At 12:43 08/07/02 -0600, Kid Stevens wrote:
><a onclick="javascript:window.open('http://www.fatherhood.org',
>                 'FatherHood','width=auto, height=auto,
>toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=0')"
>href="javascript:void(0)"> Fatherhood</a>

This is an accessibility issue.

If JavaScript is disabled or otherwise unable to open the window nothing 
will happen when the link is clicked on.

<a onclick="javascript:window.open('http://www.fatherhood.org',
                 'FatherHood','width=auto, height=auto,
toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=0'); 
return false"
href="http://www.fatherhood.org/"> Fatherhood</a>

The above accomplishes the same thing for JavaScript enabled browsers, but 
lets non-JavaScript browsers view the link. Mileage for JavaScript enabled 
browsers that can't open new windows will vary.

Andrew

--
http://aamcf.co.uk/

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA