Pages

Sunday, 31 January 2016

url - How can I get query string values in JavaScript?

url - How can I get query string values in JavaScript?

Example Url is "http://example.com?=Apple"
you can get get value "Apple" the above url by using below bit of JavaScript code Check Output : Click here to check
Output:

No comments:

Post a Comment