get lat lng from browser html

if (navigator.geolocation)
{
navigator.geolocation.getCurrentPosition(function(position)
{
var coord = position.coords.latitude+","+position.coords.longitude;
alert( coord );
});
}

2 Comments

You must be logged in to post a comment.


  1. Wow, it even prompts you and adds a cool scope reticule icon in Firefox


  2. Kprow posting to the Collective. Sweet, great post, had no idea.