WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: how to trash focus when sighted

for

From: Steve Green
Date: Dec 17, 2019 2:50PM


Create a bookmarklet with the following code:

javascript: console.log(document.activeElement);

When you want to know where focus is, trigger the bookmarklet. The JavaScript Console will show which element has focus.

There is also a bookmarklet called Force Show Focus, which you can get at http://pauljadam.com/bookmarklets.html. This forces a visible focus indicator onto elements.

Steve Green
Managing Director
Test Partners Ltd