HTML is a markup language so trying to look for ways to get values of query strings passed to the URL is not possible.

With Javascript however, it is. You can get the URL and its accompanying query string by using document.URL.

Now, to get the list of query strings and getting the value by key, we have to make our own custom function for this.

To get the value of a query string key, see the sample code.

Related Posts Plugin for WordPress, Blogger...