Home » HTML » HTML APIs » Question
  1. Which property is like the GPS in car?
    1. clearWatch()
    2. showPosition()
    3. watchPosition()
    4. getCurrentPosition()
    5. None of these
Correct Option: C

Current position of the user is returned by watdhPosition(). It update the position os th user as the user moves just like the GPS installed in a car. WatchPosition() method is stopped by clearWatch() method. E.g. if(navigator.geolocation){navigator.watchPosition(showPosition);}



Your comments will be displayed only after manual approval.