GeolocationPositionError.message

Secure context

This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The GeolocationPositionError.message read-only property returns a human-readable DOMString describing the details of the error.

Syntax

let msg = geolocationPositionErrorInstance.message

Value

A human-readable DOMString describing the details of the error.

Specifications

Specification Status Comment
Geolocation API
The definition of 'GeolocationPositionError.message' in that specification.
Recommendation Initial definition

Browser compatibility

BCD tables only load in the browser

See also