how we can get url using jquery or javascript?
<p>i have url like </p>

<p><code>http://www.abc.com/xyz/aaa/bbb/login.php?id=23</code> </p>

<p>i want to take upto </p>

<p><code>http://www.abc.com/xyz/aaa/bbb</code></p>

<p>How we can do this with javascript / jquery?</p>
