JSFiddle - React, Tailwind, and code Playground
HTML
<h1>
Read QUerystring using jQuery
</h1>
JavaScript
function GetQueryString() {
var param = {};
var url = window.location.href;
KeysValues = url.split(/[\?&]+/);
for (i = 0; i < KeysValues.length; i++) {
KeyValue = KeysValues[i].split("=");
param[KeyValue[0]] = KeyValue[1];
}
return param;
}