Location API
Location API
Section titled “Location API”Introduction
Section titled “Introduction”The Location interface represents the current URL and provides methods for navigation and URL manipulation.
Topics Covered
Section titled “Topics Covered”- URL Properties — Accessing parts of the URL
- Navigation — Navigating to new pages
Summary
Section titled “Summary”location provides full URL information. Properties for protocol, host, path, query, hash. assign() and replace() for navigation. reload() to refresh.