Archive

How To Get The Location of Client Browser

It is possible to get the clients browsers estimated location with javascript:

 

navigator.geolocation.getCurrentPosition(GetLocation);

function GetLocation(location)

 {

alert(location.coords.latitude);

alert(location.coords.longitude);

alert(location.coords.accuracy);

 }