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.
var location = String(window.location);
var title = String(document.title);
var text = { 'url': location, 'title': title };
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!!!