Web features explorer

Location

Widely available since 2018-01-29
Tags: api

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.

Learning resources on MDN

Browser support