WatchPosition() - Definition - HTML

Q.  Which object returns the current position of the user and continues to return updated position as the user moves?
- Published on 27 Aug 15

a. watchPosition()
b. clearWatch()
c. getCurrentPosition()
d. timestamp

ANSWER: watchPosition()
 

    Discussion

  • Nirja Shah   -Posted on 06 Nov 15
    - watchPosition() - It returns the current position of the user and continues to return the updated position as the user moves (like the GPS in a car).

    - clearWatch() - It Stops the watchPosition() method.

    - getCurrentPosition() method - It returns an object if it is successful. The latitude, longitude and accuracy properties are always returned.

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)