window.location.pathname
window.location.href
Можно использовать и более краткую форму:
location.href