<<Index
Javascript - window.location
- location.href
- Returns the current URL
- location.hostname
- Returns the current domain
- location.pathname
- Returns the current pathname including file name
- location.protocol
- Returns the current protocol (http, https)
Snippet: