Thanks neelesh for the reply..It will work only when you have one query
parameter but in our case we had two query parameters, For some pages
one queryparameter will be used and for some pages the other
queryparameter will be used in the same html.For Example : ?q=&tag=For
that purpose I was validating with this line of code : or this
will also work.and also I have written some JS for fetching the two
queryparameters and assigning it to some variable in JS itself and
returning it in html. In th...