Hash Parser is a small JavaScript library to get (encoded) query parameters and set them in the URL hash. the hash parser is a very small JavaScript library that helps you manipulate (set/get) query parameters in the URL.
jquery get query parameter from url, javascript get query string value from url, query params in url, jquery get url parameter, javascript parse url parameters, javascript get url parameter
How to make use of it:
1. Include the hashparser’s JavaScript on the web page.
<script src="dist/hashparser.min.js"></script>
2. Append question parameters to the present URL.
HashParser.setParameter('web', 'codeflow'); => https://youtsite.com/page.html#!css=script
3. Determine whether or not to encode the query parameter value.
HashParser.setParameter(‘web’, ‘codeflow’, true); => https://youtsite.com/page.html#!css=InNjcmlwdCI=
4. It helps any sort of information within the hash.
var example = { "css": "script" }; HashParser.setParameter('example', greeting, true);
5. Get the encoded value of a query parameter.
var getPara = HashParser.getParameter('web', true);
Set & Get Query Parameters, Hash Parser Plugin/Github
See Demo And Download
Official Website(rvanbaalen): Click Here
This superior jQuery/javascript plugin is developed by rvanbaalen. For extra Advanced Usages, please go to the official website.