W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > July to September 2005

RE: [TECHS] Use of anchor tags to invoke JavaScript

From: Andrew Kirkpatrick <akirkpatrick@macromedia.com>
Date: Tue, 16 Aug 2005 15:42:29 -0700
Message-ID: <DC9D05204B1E16419D62C12561C93221040FC85A@p01exm01.macromedia.com>
To: <w3c-wai-gl@w3.org>
<a href="javascript:doSomething();">Action Link</a> 
<a href="javascript:;" onclick="doSomthing();">Action Link</a> 
<a href="javascript:doSomething();" onclick="doSomthing();return
false;">Action Link</a> 
<a href="#" onclick="doSomething();return false;">Action Link</a> 
<a href="/" onclick="doSomthing();return false;"><Action Link</a> 
 
Why not:
 <a onclick="doSomething();return false;">Action link</a>
 
I don't know what different user agent would do with this.  It is
possible that it wouldn't be in the tab order unless a tabindex was also
added.  Just a thought...
AWK
Received on Tuesday, 16 August 2005 22:42:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:47:39 GMT