Cuting an URL with JS or Jquery
<p>Hello guys is it possible to throw away the first part of an url</p>

<pre><code>var mydir = $("script[src$='jquery_main.js']").attr('src').slice(0, -14);

http://127.0.0.1:9081/Mgr/resources/ui/skins/default/js/main/
</code></pre>

<p>im trying to remove this part "<a href="http://127.0.0.1:9081/Mgr/" rel="nofollow">http://127.0.0.1:9081/Mgr/</a>" but without indexOf. is it possible to cut the url after the third /  to get just this part <code>/resources/ui/skins/default/js/main/</code></p>