Use Javascript/Jquery to to strip down a dynamic URL
<p>I have this function:</p>

<pre><code>popstate = function(url){
$('#ajaxloadcontent').load(url+"#ajaxloadcontent &gt; *");
}
</code></pre>

<p>I need it to get the current page URL, lets just call that:  "http://www.pearlsquirrel.com/index.php"</p>

<p>I then need to somehow use jquery and strip down the URL to just what is after "http://www.pearlsquirrel.com/" and be left with "index.php."  Is there any kind of jquery or javascript function that would be able to help me do this?</p>

<p>Also, if it were to just get "http://www.pearlsquirrel.com," I would need the function also set the URL to a default index.php.</p>
