window.location.hash = 'aykarramba' window.location.hash = ''
window.location.hash = 'aykarramba' alert(document.URL) a=window.location.href.split('#')[0] //window.location.href=a //Раскомментить в реале alert(a)