title: JavaScript - Get Portion of URL Path
body: <p>What is the correct way to pull out just the path from a URL using JavaScript?</p>
  
  <p>Example:<br>
  I have URL<br>
  <a href="http://www.somedomain.com/account/search?filter=a#top">http://www.somedomain.com/account/search?filter=a#top</a><br>
  but I would just like to get this portion<br>
  <em>/account/search</em></p>
  
  <p>I am using jQuery if there is anything there that can be leveraged.</p>