jquery location.pathname
<p>I would like to hide #workspace when url is:</p>

<p><a href="http://machine/_l/R/bases.aspx#bases=0" rel="nofollow">http://machine/_l/R/bases.aspx#bases=0</a></p>

<p><a href="http://machine/_l/R/bases.aspx#bases=1" rel="nofollow">http://machine/_l/R/bases.aspx#bases=1</a></p>

<p><a href="http://machine/_l/R/bases.aspx#bases=2" rel="nofollow">http://machine/_l/R/bases.aspx#bases=2</a></p>

<p>and i would like to keep #workspace when url is</p>

<p><a href="http://machine/_l/R/bases.aspx" rel="nofollow">http://machine/_l/R/bases.aspx</a></p>

<p>i have tried that script below but that doesn't work!</p>

<pre><code>var url = location.pathname;
if (url.indexOf('#bases=') &gt;= 0) {
    //inner column width
    jQuery('#workspace').css('display', 'none');
}
</code></pre>

<p>any ideas?
thanks and happy friday.</p>
