Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

Html

WebIDL[Exposed=Window]
interface Geolocation {
  undefined getCurrentPosition (
    PositionCallback successCallback,
    optional PositionErrorCallback? errorCallback = null,
    optional PositionOptions options = {}
  );

  long watchPosition (
    PositionCallback successCallback,
    optional PositionErrorCallback? errorCallback = null,
    optional PositionOptions options = {}
  );

  undefined clearWatch (long watchId);
};

callback PositionCallback = undefined (
  GeolocationPosition position
);

callback PositionErrorCallback = undefined (
  GeolocationPositionError positionError
);
Source by w3c.github.io #
 
PREVIOUS NEXT
Tagged: #Html
ADD COMMENT
Topic
Name
7+2 =