Below I mention that Reading Query String Script:
<!– Query String Read Code Start
function querySt(queryValue) {
queryString = window.location.search.substring(1);
urlSplitQuery = queryString.split(“&”);
for (i=0;i<urlSplitQuery.length;i++) {
finalQueryTxt = urlSplitQuery[i].split(“=”);
if (finalQueryTxt[0] == queryValue) {
return finalQueryTxt[1];
}
}
}
var queryFunction = querySt(“queryFunction”);
//document.write(queryString);
// Query String Read Code End –>
If you feel check conditon below i mention the query string condition:
if(queryString==”query”){
document.write(‘Yes query here’);
}
else{
document.write(‘no query’);
}