Skip to content

Tiny jQuery making a huge difference in Accessibility. You will have a bulletproof focus on an element of your page.

License

Notifications You must be signed in to change notification settings

tomagladiator/focusOnMyAnchor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

focusOnMyAnchor

Tiny jQuery making a huge difference in Accessibility. You will have a bulletproof focus on an element of your page.

First, add this script on you website (with jQuery)

  $('.focusOnMyAnchor').click(function () {
    var myAnchor = $(this).attr('href');
    $(''+myAnchor+'').attr('tabIndex', '0');
    $(''+myAnchor+'').focus();
  });

Then, add the class 'focusOnMyAnchor' on all link with an anchor.

Tadaaa, you can now navigate throw your website with the TAB key, perfect for accessibility!

About

Tiny jQuery making a huge difference in Accessibility. You will have a bulletproof focus on an element of your page.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published