🏠 New in Low Baseline Support: Location
July 29, 2015
The location global object represents the current page’s address. You can use it to get the parts of the address (such as location.hostname or location.pathname) or navigate to another URL.
Source features
api.Document.location[mdn]api.Location[mdn]api.Location.hash[mdn]api.Location.host[mdn]api.Location.hostname[mdn]api.Location.href[mdn]api.Location.pathname[mdn]api.Location.port[mdn]api.Location.protocol[mdn]api.Location.reload[mdn]api.Location.replace[mdn]api.Location.search[mdn]api.Window.location[mdn]api.Location.assign[mdn]api.Location.origin[mdn]api.Location.toString[mdn]api.Location.ancestorOrigins[mdn]