Baseline Widely other

Location

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.

Baseline Status
Widely Available
Since 2015-07-29
First Core Launch
Safari 1
2003-06-23
Core-3 Stability
1,998d (5.5y)
Last: Chrome (2008-12-11)
BCD Keys Mapped
17
Group: other

Browser Support Timeline

Safari v1 (2003-06-23) Firefox v1 (2004-11-09) Safari on iOS v1 (2007-06-29) Chrome v1 (2008-12-11) Firefox for Android v4 (2011-03-29) Chrome Android v18 (2012-06-27) Edge v12 (2015-07-29)
Green dot marks the first browser release (2003-06-23); blue dots show subsequent browser launches (+4419d total span).

Browser Support Releases

BrowserTypeVersionRelease Date
Safari desktop 1 2003-06-23
Firefox desktop 1 2004-11-09
Safari on iOS mobile 1 2007-06-29
Chrome desktop 1 2008-12-11
Firefox for Android mobile 4 2011-03-29
Chrome Android mobile 18 2012-06-27
Edge desktop 12 2015-07-29

Constituent MDN BCD Keys (Sample)

BCD KeyAreaCore-3 TTA
api.Document.location DOM API 1,672d (4.6y)
api.Location DOM API 1,998d (5.5y)
api.Location.ancestorOrigins DOM API 4,991d (13.7y)
api.Location.assign DOM API 1,493d (4.1y)
api.Location.hash DOM API 1,998d (5.5y)
api.Location.host DOM API 1,998d (5.5y)
api.Location.hostname DOM API 1,998d (5.5y)
api.Location.href DOM API 1,998d (5.5y)
api.Location.origin DOM API 894d (2.4y)
api.Location.pathname DOM API 1,998d (5.5y)
api.Location.port DOM API 1,998d (5.5y)
api.Location.protocol DOM API 1,998d (5.5y)
api.Location.reload DOM API 1,998d (5.5y)
api.Location.replace DOM API 1,998d (5.5y)
api.Location.search DOM API 1,998d (5.5y)
api.Location.toString DOM API 4,776d (13.1y)
api.Window.location DOM API 1,998d (5.5y)