How do I parse a URL query parameters, in Javascript?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/827368/use-the-get-paramater-of-the-url-in-javascript">Use the get paramater of the url in javascript</a><br>
  <a href="http://stackoverflow.com/questions/901115/get-query-string-values-in-javascript">Get query string values in JavaScript</a>  </p>
</blockquote>



<p>In Javascript, how can I get the parameters of a URL string (not the current URL)?</p>

<p>like:</p>

<pre><code>www.domain.com/?v=123&amp;p=hello
</code></pre>

<p>Can I get "v" and "p" in a JSON object?</p>
