This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

timeout

Summary

Denotes the maximum length of time (expressed in milliseconds) that is allowed to pass from the call to getCurrentPosition() or watchPosition() until the corresponding successCallback is invoked.

Property of apis/geolocation/PositionOptionsapis/geolocation/PositionOptions

Syntax

var result = PositionOptions.timeout;
PositionOptions.timeout = value;

Return Value

Returns an object of type unsigned longunsigned long

Examples

//10000ms = 10sec
PositionOptions.timeout = 10000;

Related specifications

W3C Geolocation Specification
W3C Editor’s Draft

Attributions