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.

Related Posts


A Simple Searchable Select Dropdown Plugin | jQuery Select Search

Simple jQuery search on the selection options plugin for your website. Next, there is a checkbox replacement plugin that refines and beautifies the original selection element with…


A Quick jQuery-Based Country Picker With Flags | Country Select JS

Country Select JS is a jQuery plugin to select a country, based on the international phone input plugin. Adds a flag dropdown to any input, which lists…


Simple and Fast Autocomplete and Typeahead Javascript Library | autoComplete.js

autoComplete.js is a simple, pure, and incrementally designed JavaScript library for speed, high versatility, and seamless integration with a wide variety of projects and systems. Features Pure…


Bootstrap Notification Message Alert Plugin with jQuery

BootstrapMsg is a jQuery plugin for displaying messages with Bootstrap alert classes to generate hierarchical in-page navigation for an extended webpage sectioned by heading components. Using Bootstrap…


jQuery Plugin for Transforming HTML Tables Into Charts Using Google Charts

Chartinator is a jQuery plugin for converting HTML tables, Google Sheets and js arrays into charts using Google Charts. Use data from HTML tables Chartinator is designed…


Customizable & Composable Charts for VueJS | vue-wcharts

WCharts is a library that makes it easy to create your own charts using Vuejs. You can easily create reusable chart components. Use a basic layout or…