![]() |
Getting Query parameters in Javascript
We sometimes require to get the query parameters of an URL in JavaScript, here's how we can do that.
Code: JavaScript
HTML Code:
<script language='JavaScript'>Code:
ab = pradeep |
Re: Getting Query parameters using Javascript
Thanks Buddy
It really helped me to solve my problem. Can you help me more little on this how to make any url from this to get any document of that query |
Re: Getting Query parameters using Javascript
Thank you my friend for the post .
|
Re: Getting Query parameters using Javascript
Nice.
To get a specific named argument in the query you could also do it the following way: lazerwire.com/2011/10/javascript-get-url-query-argument.html Remember to url decode the value using the "unescape" method in JavaScript. |
| All times are GMT +5.5. The time now is 18:50. |