GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for HTMLGeolocationElement: location event.

Developer library 6

` ` HTML geolocation element

into providing their location data unwittingly (see [`<geolocation>` blocking](#geolocation_blocking) for more information). The element's DOM API interface, HTMLGeolocationElement, provides features to access returned position data, current permission status, and errors if the data retrieval was unsuccessful, reducing the amount of JavaScript logic that needs to be written. It also has events available to run code

HTMLGeolocationElement

HTML DOM The **`HTMLGeolocationElement`** interface of the [HTML DOM API](/docs/Web/API/HTML_DOM_API) represents the geolocation element, and provides access to its properties and events. This element is based on, and inherits properties and methods from, the HTMLElement interface. > [!NOTE] > The `<geolocation>` element and `HTMLGeolocationElement` interface allow the user to share their location data with the pa

HTMLGeolocationElement: permissionStatus property

Navigation API The **`permissionStatus`** read-only property of the HTMLGeolocationElement interface returns an enumerated value representing the current permission status for the `geolocation` feature. If you want to access the initial permission status for the `geolocation` feature as it was when the page first loaded, use the initialPermissionStatus property. ## Value An enumerated value, which can be one of:

HTMLGeolocationElement: initialPermissionStatus property

Navigation API The **`initialPermissionStatus`** read-only property of the HTMLGeolocationElement interface returns an enumerated value representing the permission status for the `geolocation` feature when the page first loads. If you want to access the current permission status for the `geolocation` feature, use the HTMLGeolocationElement.permissionStatus property. ## Value An enumerated value, which can be one

HTMLGeolocationElement: location event

HTML DOM The **`location`** event of the HTMLGeolocationElement interface is fired whenever the browser receives location data, or error information when a location data request was unsuccessful. ## Syntax Use the event name in addEventListener(): ```js-nolint addEventListener("location", (event) => { }) ``` Alternatively, assign to the [event handler property](/docs/Web/API/Document_Object_Model/Events#using_on

HTMLGeolocationElement: error property

Navigation API The **`error`** read-only property of the HTMLGeolocationElement interface returns a GeolocationPositionError object representing error information, in the event of a failure to retrieve location data. If location data retrieval is successful, the data is available in the HTMLGeolocationElement.position property. ## Value A GeolocationPositionError object, or `null` if location data was successfull

JSON results · Services directory