# Accessible Smooth Scrolling

This is a popular jQuery script for scrolling to hash links within a page. It's adapted here to give keyboard focus to the target link, aiding accessibility.

The browser's default behaviour could leave keyboard users tabbing through links that are out view, so jQuery is used here to focus the target links using tabindex.

- Click here…

## Press tab

You should be able to tab straight to the links in this section, bypassing the link above.

- Yay! Do it again!
- Try it backwards.

## Press tab again.

The original jQuery scrolling script can be found on css-tricks, and the simple accessibility adaption was inspired by Heydon Pickering's suggestion in his ebook "Apps For All".

- Back to the top.