How can I detect with javascript if an attribute "#" is appended to an url?
<p>How can I detect with javascript if an attribute "#" is appended to an url ?</p>

<p>I need a cross-browser solution. I'm currently using the following code, but it works only in Firefox:</p>

<pre><code>if ((window.location.hash) || (window.location.hash != "#"))
    window.scrollBy(0,-60);
</code></pre>

<p>thanks</p>
