title: How to obtain the query string from the current URL with JavaScript?
body: <p>I have URL like this:</p>
  
  <pre><code>http://localhost/PMApp/temp.htm?ProjectID=462
  </code></pre>
  
  <p>What I need to do is to get the details after the <code>?</code> sign (query string) - that is <code>ProjectID=462</code>. How can I get that using JavaScript?</p>
  
  <p><strong>What I've done so far is this:</strong></p>
  
  <pre><code>var url = window.location.toString();
  url.match(?);
  </code></pre>
  
  <p>I don't know what to do next.</p>