get absolute path of the page url using javascript
<p>using javascript how can I get the absolute path of the current url.</p>

<p>eg: <a href="http://www.example.com/test/this?page=2" rel="nofollow">http://www.example.com/test/this?page=2</a></p>

<p>can i get just "/test/this?page=2" </p>

<p>thanks</p>
