Get current URL address by javascript : <p>How can I get current URL like this.</p>

<p>For example, if the url is:</p>

<p><a href="http://www.test.com/app/one.bc" rel="nofollow noreferrer">http://www.test.com/app/one.bc</a></p>

<p>I want to get the path without the address the main page so like:</p>

<p>/app/one.bc</p>
