Skip to content

Location API

The Location interface represents the current URL and provides methods for navigation and URL manipulation.

location provides full URL information. Properties for protocol, host, path, query, hash. assign() and replace() for navigation. reload() to refresh.