title: Parse an URL in JavaScript
body: <p>How do I parse an URL with JavaScript (also with jQuery)?</p>
  
  <p>For instance I have this in my string,</p>
  
  <pre><code>url = "http://example.com/form_image_edit.php?img_id=33"
  </code></pre>
  
  <p>I want to get the value of <code>img_id</code></p>
  
  <p>I know I can do this easily with PHP with <code>parse_url()</code>, but I want to know how it is possible with JavaScript.</p>