Limited Availability
HTML elements
id: geolocation-element
<geolocation>
The
<geolocation> HTML element represents a button that, upon activation, prompts the user to choose whether to grant the page access to geolocation data.
Baseline Status:
This feature is currently Limited and is missing in at least one major browser engine.
Desktop Browser Engine Support
Google Chrome
144
Supported
Mozilla Firefox
—
Unsupported
Apple Safari
—
Unsupported
Microsoft Edge
144
Supported
Mobile Browser Engine Support
Chrome Android
144
Firefox Android
—
Safari iOS
—
Specifications and References
MDN Browser Compat Data Keys:
api.HTMLGeolocationElement ↗
api.HTMLGeolocationElement.autolocate ↗
api.HTMLGeolocationElement.error ↗
api.HTMLGeolocationElement.initialPermissionStatus ↗
api.HTMLGeolocationElement.invalidReason ↗
api.HTMLGeolocationElement.isValid ↗
api.HTMLGeolocationElement.location_event ↗
api.HTMLGeolocationElement.permissionStatus ↗
api.HTMLGeolocationElement.position ↗
api.HTMLGeolocationElement.promptaction_event ↗
api.HTMLGeolocationElement.promptdismiss_event ↗
api.HTMLGeolocationElement.validationstatuschange_event ↗
api.HTMLGeolocationElement.watch ↗
html.elements.geolocation ↗
html.elements.geolocation.autolocate ↗
html.elements.geolocation.watch ↗