Online Test > HTML5

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
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

Name:  
Email:    
Subject:  
Comment:  

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


 
 
Home | About us | Sitemap | Contact us