Press "Enter" to skip to content

Minimal Javascript Library To Handle URL Hashing | urlhash.js

urlhash.js easily get and set custom parameters  window.location.hash to store user input for ajax requests where filtering is required. With simple default values, you can even implement this as a primary state manager for your app.

javascript change url hash without reload, javascript get url hash parameters, add hash to url javascript, remove hash from url, hash routing javascript

How to make use of it:

1. Install it with NPM:

$ npm install urlhash

2. Install it using your browser:

<script src="dist/urlhash.min.js"></script>

3. Initialize urlhash and specify the default parameter:

window.urlhash = new urlHash({ default: 'hello' });

4. Set the URL hash:

urlhash.set( params )

5. Get the current URL hash.

urlhash.get( parameter, parse )

set and get url hash with javascript, urlhash.js Plugin/Github, how to pass hash in url query string


See Demo And Download

Official Website(EastingAndNorthing): Click Here

This superior jQuery/javascript plugin is developed by EastingAndNorthing. For extra advanced usage, please go to the official website.

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *