title: How to get current url without page in javascript or jquery
body: <p>How can I get current URL without page in Javascript or jQuery.</p>
  
  <p>For example, if the url is: </p>
  
  <p><a href="http://www.abc.com/music/pop.aspx" rel="noreferrer">http://www.abc.com/music/pop.aspx</a> </p>
  
  <p>I want to get the full path without the page so like:</p>
  
  <p><a href="http://www.abc.com/music/" rel="noreferrer">http://www.abc.com/music/</a></p>
  
  <p>No need to worry about parameters.</p>
  
  <p>Thanks</p>