vhashrouter

A simple vanilla javaScript router based on change in hash part of the URL (with optional AJAX) for Single Page Applications.

Usage no npm install needed!

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

README

vHashRouter

A small independent javascript library for navigating between pages by changing the hash part of the URL.

You can also set the page content from external resources.

Usage

For instructions on usage, go to the Usage page.

Features

  • Create navigation using single HTML page.
  • Set a default page to be loaded when no hash is in the URL.
  • Dynamically load external pages.
  • External pages and resources are loaded only once.