Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which method is used to get user’s position?

a) getCurrentPosition()
b) getDirectPosition()
c) post()
d) getDirection

Answer: a
Explanation: 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.

Join The Discussion