W3C home > Mailing lists > Public > www-html@w3.org > February 2000

RE: javascript scheme in href URLs

From: <JOrendorff@ixl.com>
Date: Tue, 8 Feb 2000 16:28:14 -0500
Message-ID: <CD8E2CDBC6D0D111ACB900805FBBD97E0263017F@mem-131.ixl.com>
To: www-html@w3.org
Dave J Woolley (DJW@bts.co.uk) wrote:
> Preferably, if you are going to use Javascript and it isn't
> fundamentally++ required for the applications (true of most
> commercial web sites using javascript:) your links should be
> normal links and any Javascript effects should be achieved by
> intercepting the onclick or onsubmit events, such that, with
> the Javascript inactive, the page is still completely usable.
> That's my view, anyway.

It's also the view of the W3C Accessibility WG.

The Web Content Accessibility Guidelines 1.0
http://www.w3.org/TR/1999/WAI-WEBCONTENT-19990505

This is a W3C Recommendation; it says:
] 6.3 Ensure that pages are usable when scripts, applets, or
] other programmatic objects are turned off or not supported.
] If this is not possible, provide equivalent information on an
] alternative accessible page. [Priority 1]

The document goes on to say, "...(e.g., do not use 'javascript:'
as the link target)."

Note that this is a Priority 1 checkpoint.  If you use "javascript:",
some people won't be able to use that part of your site.

-- 
Jason Orendorff
Received on Tuesday, 8 February 2000 16:28:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:42 GMT