Pages

Wednesday, 10 February 2016

JavaScript: get query string values from url in JavaScript


JavaScript: get query string values from url in JavaScript:

URL: http://websolutiontool.blogspot.in/2016/02/javascript-get-query-string-values-from.html

Url with String Values: http://websolutiontool.blogspot.in/2016/02/javascript-get-query-string-values-from.html?a=Apple&b=Banana&c=cherry0123&d=+doll%20&empty

check output click result then click below button: Result

Click the button to get query string values from url.



urlParams =
{
 a: " Apple ",
 b: "Banana",
 c: "cherry0123",
 d: "doll",
 empty: ""
}
JavaScript: get query string values from url in JavaScript:

Javascript part is here:


To assign or to get output use below code:

No comments:

Post a Comment