base url using jQuery
<p>How to get base url in jQuery?</p>

<p>Think I am in <a href="http://localhost/test/test_controller/test" rel="nofollow">http://localhost/test/test_controller/test</a>'s js file then I want to get only</p>

<pre><code>/test
</code></pre>

<p>or</p>

<pre><code>http://localhost/test/
</code></pre>
