Hi Patrick
I think Michael is right, sometimes in life you have to do stuff that
isn't perfect.

In my example I had a TITLE attribute in the A link saying that it would
open a new window - someone with a screen reader would hear that the
link would open a new window, if they have disabled JavaScript then it
wouldn't open a new window but just go straight to the URL anyway.

Many clients have been told time after time that "for external links you
should always open a new window" this is going to be a problem for quite
a while, until we can convince people this is not necessary, I believe
that this or Justin's way of dealing with external links is a practical
solution to a very real client problem.

Cheers 

Jeff Lowder
Accessibility 1st
Website: www.accessibility1st.com.au
Blog: www.accessibility1st.com.au/journal/ 


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Patrick Griffiths
Sent: Sunday, 18 April 2004 7:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] target="_blank" substitute

> This is both an accessible and valid method:

Valid yes, but accessible?
I click on a link. I look at the page. I try to click on the back
button. "What? Why doesn't this work? Oh. Because it's opened in a new
window". Close window. Return to the site (and page) I want to be on.
This whole malarkey makes the site less accessible for me, let alone for
a person who can't actually see what's going on.

> <a href="foo.html" onclick="window.open(this.href);return false;"
> onkeypress="window.open(this.href);return false;" title="opens in new
> window">new window</a>

If you are going to use JavaScript though, this will do:

<a href="foo.html" onclick="window.open(this.href);return false;"
title="opens in new window">new window</a>

onclick is invoked by keyboard action too.


----------------
Patrick Griffiths (PTG)
 http://www.htmldog.com/ptg/
 http://www.htmldog.com


*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 



*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 

Reply via email to