Get started with jquery-url-parser CDN
MIT licensed
JQuery plugin jquery-url-parser: Lightweight URL parsing and manipulation in JS.
Tags:- jquery-url-parser
- purl
Stable version
Copied!
How to start using jquery-url-parser CDN
$(document).ready(function() {
// Include the library using the CDN link
$('head').append('<script src="https://cdn.cdnhub.io/jquery-url-parser/2.3.1/purl.min.js"></script>');
// Parse the current URL
var parsedUrl = $('a[href="' + window.location.href + '"]').purl();
// Log the parsed URL to the console
console.log(parsedUrl);
// Access specific query parameters
var queryParamValue = parsedUrl.query.paramName;
console.log('Query parameter "paramName" value:', queryParamValue);
});
Copied!
Copied!