<script type="text/javascript"> // GET LOCATION function GetMyLocation() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(LocationCallback, FailureCallback); } else { alert("Sorry, your browser doesn't support Geolocation"); } } function LocationCallback(position) { alert('Latitude: ' + position.coords.latitude + '\n' + 'Longitude: ' + position.coords.longitude + '\n' + 'Accuracy: ' + position.coords.accuracy); } // FAILURE function FailureCallback(error) { alert('Sorry, an error occured - ' + error); } </script>
Regards, Sheo Narayan http://www.dotnetfunda.com
Login to post response