location=http://localhost/javascript/querystring.html?name=query&value=100
location.search=?name=query&value=100
<html> <head> <script> alert("url with query string, location="+location); alert("get query string, location.search="+location.search); </script> </head> <body> </body> </html>