Following method is used to get the current location of the user in Geolocation in HTML5?

Options
- getCurrentPosition()
- getPosition()
- getLocation()
- getCurrentLocation()


CORRECT ANSWER : getCurrentPosition()

Discussion Board
getCurrentPosition()

The getCurrentPosition() method is used to return the user's position or location using HTML Geolocation.

Sapna 02-24-2017 05:22 AM

Explanation.

Answer : getCurrentPosition()

The Geolocation getCurrentPosition() method is used to get the current position of the device.The getCurrentPosition() method gives the user's position.

Jayesh Sonar 02-27-2015 06:00 AM

Write your comments


Enter the code shown above:

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


Advertisement