Javascript snippet: location.href

location.href:
location.protocol location.hostname location.port location.pathname location.search location.hash