skipnav

Skipnav is a vanilla Javascript implementation of "Skip Navigation" Links

Usage no npm install needed!

<script type="module">
  import skipnav from 'https://cdn.skypack.dev/skipnav';
</script>

README

skipnav

Skipnav is a vanilla Javascript implementation of "Skip Navigation" Links

This adds the above described functionality to html links that look like:

<a href="#main" id="skipnav">Skip Navigation</a>

This means that you must have the "main" id on a target in the DOM.

Vue.js version is included

We've included an example implementation of this code for use in a Vue.js component. This file is called skipnav-vue.js