getting parts of url window.location
- by ilkin
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 };