RE: target in xhtml11

Yes and No

No - because it works as is

Yes - if you intend to validate your page against WCAG, Bobby or other
accessibility conformance standard
Then you will find the page will not validate - give it a try

As soon as I added 'onclick' to one of my pages validation was lost.

However - I do not have an answer to your 'target' issue - my onlick was for
a completely different reason

I wanted 2 different URLs for the href - one for none-Jscript and one for
Jscript enabled

I got round this by setting the value in the href to the non Jscript value
and then using an onload script which changed the href value - obviously
only having any effect when Jscript is enabled

Thus I had the same effect without onclick and WCAG / Bobby validation was


-----Original Message-----
From: [] On
Behalf Of Beton, Richard
Sent: 14 June 2004 15:30
To: Allan Smith;
Subject: Re: target in xhtml11

Allan Smith wrote:

>Re option 2 - javascript
>The suggested code obviously works
>But then creates a problem when validating with WCAG / Bobby etc  along the
>lines of
>... Find a way of doing this that does not use a mouse.. (my words)
>and adding an 'onkey' doesn't stop the validation fail

I'm sorry Allan, I'm not sure I understand your point.  The happy 
consequence of using the href attribute with javascript is that it 
remains accessible, whether or not javascript is available/enabled.

<a href="" onclick="return wOpen(this,

Are you suggesting I need to add something else to improve it further?



Visit our website at

Roke Manor Research Ltd, Roke Manor, Romsey, Hampshire SO51 0ZN, UK.

The information contained in this e-mail and any attachments is confidential
Roke Manor Research Ltd and must not be passed to any third party without
permission. This communication is for information only and shall not create
change any contractual relationship.

Received on Monday, 14 June 2004 10:47:29 UTC