Web features explorer

Location

Widely available
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. To learn more, see Document: location property at MDN.

Compatibility