split() in javascript
<p>I have code:</p>

<pre><code>  function _filter() {
    var url = window.location;
    alert(url);
    alert(url.split("/")[1]);
  }
</code></pre>

<p>When I launch it I get only one alert message:</p>

<blockquote>
  <p><a href="http://localhost:8000/index/3/1" rel="nofollow">http://localhost:8000/index/3/1</a>.</p>
</blockquote>

<p>Why I don't get the second alert message?</p>
