WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: In-page links and programmatic focus

for

From: Jim Homme
Date: Sep 12, 2016 12:39PM


Hi Nick,
By "focus" It sounds as though you mean change the focus of the computer. Based on this, I feel that you should just let the anchors do their work and avoid forcing focus to do anything but what the browser makes it do.

Jim


=========Jim Homme,
Accessibility Consultant,
Bender HighTest Accessibility Team
Bender Consulting Services, Inc.,
412-787-8567,
<EMAIL REMOVED>
http://www.benderconsult.com/our%20services/hightest-accessible-technology-solutions
E+R=O

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Beranek, Nicholas
Sent: Monday, September 12, 2016 2:36 PM
To: <EMAIL REMOVED>
Subject: [WebAIM] In-page links and programmatic focus

Hi folks,

My team and I are having a discussion about in-page links. We are trying to determine if it's necessary to programmatically shift focus to the target element once an in-page link is activated.

What behavior do you expect? If I have an anchor that targets an ID on the page, do I also need to add an element.focus() handler (with subsequent tabindex=-1 if necessary)?

Thank you,

Nick

--
Nick Beranek
Capital One

The information contained in this e-mail is confidential and/or proprietary to Capital One and/or its affiliates and may only be used solely in performance of work or services for Capital One. The information transmitted herewith is intended only for use by the individual or entity to which it is addressed. If the reader of this message is not the intended recipient, you are hereby notified that any review, retransmission, dissemination, distribution, copying or other use of, or taking of any action in reliance upon this information is strictly prohibited. If you have received this communication in error, please contact the sender and delete the material from your computer.