Extracting search queries from URL in jQuery
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/901115/get-query-string-values-in-javascript">Get query string values in JavaScript</a><br>
  <a href="http://stackoverflow.com/questions/2090551/parse-query-string-in-javascript">Parse query string in JavaScript</a>  </p>
</blockquote>



<pre><code>http://www.example.org/search?q=example&amp;another=test&amp;again=more
</code></pre>

<p>How can I create three sepearate variables in jQuery with the values <code>example</code>, <code>test</code>, and <code>more</code>?</p>

<p>In other words, how can I extract a query from a URL based on its position (first, second, third, etc.) in the URL or based on the <code>&amp;another=</code> part (not sure what it's called) of the query?</p>
