title: Get absolute path in javascript
body: <p>Can you get the absolute path in html.</p>
  
  <p>If i use location.href i can get the url but how can i trim the filename.html ? </p>
  
  <p>IS there a better way to get the path. </p>
  
  <p>Thanks! </p>