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
Geolocation API Specification 2nd Edition
# message-attribute

Browser compatibility

BCD tables only load in the browser

See also