Archive for the ‘HTML5’ Category

Get Geolocation in Browser using HTML5

HTML 5 allows obtaining of your website visitor’s Geo location through navigator.geolocation object. To obtain the visitor’s current location, you can call the getCurrentPosition() method. This initiates a request to detect the user’s position. Syntax of getCurrentPosition() method is :

navigator.geolocation.getCurrentPosition(success, error, options)

Read On…