WebIDLpedia

HTMLGeolocationElement interface

Definition

The HTML Geolocation Element defines HTMLGeolocationElement

[Exposed=Window]
interface HTMLGeolocationElement : HTMLElement {
  [HTMLConstructor] constructor();

  readonly attribute GeolocationPosition? position;
  readonly attribute GeolocationPositionError? error;
  [CEReactions, Reflect] attribute boolean autolocate;
  [CEReactions, Reflect] attribute boolean watch;

  attribute EventHandler onlocation;
};
HTMLGeolocationElement includes ActivationBlockersMixin;
HTMLGeolocationElement includes PowerfulFeatureObserver;
Consolidated IDL (across mixin and partials)
[Exposed=Window]
interface HTMLGeolocationElement : HTMLElement {
  [HTMLConstructor] constructor();

  readonly attribute GeolocationPosition? position;
  readonly attribute GeolocationPositionError? error;
  [CEReactions, Reflect] attribute boolean autolocate;
  [CEReactions, Reflect] attribute boolean watch;

  attribute EventHandler onlocation;
  readonly attribute boolean isValid;
  readonly attribute ActivationBlockersMixinBlockerReason invalidReason;
  attribute EventHandler onvalidationstatuschange;
  readonly attribute PermissionState initialPermissionStatus;
  readonly attribute PermissionState permissionStatus;
  attribute EventHandler onpromptaction;
  attribute EventHandler onpromptdismiss;
};

Methods and attributes that return objects implementing HTMLGeolocationElement