Home » HTML » HTML APIs » Question
  1. Which method is used to get user’s position?
    1. getDirectPosition()
    2. post()
    3. getDirection
    4. getCurrentPosition()
    5. None of these
Correct Option: D

For getting user’s position we used getCurrentPosition() method. Syntax is navigator.geolocation.getCurrentPosition(showPosition). It is supported by most of the browsers like Chrome, Firefox, Internet Explorer, Opera etc.



Your comments will be displayed only after manual approval.