getting parts of url window.location
<p>Can someone help me with url hash? 
I use this code to get the current url and then send the data as json, but the hash part seems to be stripped then.
i tryed to use href and hash and i always get the default.aspx but no hash part like #anchor.  </p>

<pre><code>var location = String(window.location);
var title = String(document.title);
var text = { 'url': location, 'title': title };
</code></pre>

<p><strong>Thanks for help guys. I figured it out. All answers were correct as well as my code. I just put it in wrong event hadler. Because my hash parts are generating dynamically. Sorry for disturbing you guys!!!</strong></p>
