WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: In-page links and programmatic focus

for

From: Bryan Garaventa
Date: Sep 12, 2016 3:02PM


The following shows the basic concepts.


<a href="#st1" onclick="document.getElementById(this.getAttribute('href').slice(1)).focus(); return false;"> Skip to something </a>

<div> Stuff to skip. </div>

<h2 id="st1" tabindex="-1"> Something </h2>


Bryan Garaventa
Accessibility Fellow
SSB BART Group, Inc.
<EMAIL REMOVED>
415.624.2709 (o)
www.SSBBartGroup.com