What's the easiest way to parse the anchor out of the current page's location?
<p>I need to the anchor out of a <code>window.location</code> in JavaScript, such as the following url:</p>

<pre><code>http://www.example.com/page.html#anchor1
</code></pre>

<p>What's the easiest method?</p>
