Click the button to check your co-ordinate location.
Get Location<p id="result"></p>
<script type="text/javascript">
var x =document.getElementById("result");
function getLocation()
{
if(navigator.geolocation)
{
navigator.geolocation.getCurrentPostion(showPostion);
}
else
{
x.innerHTML="Geolocation is not supported by your browser."
}
}
function showPostion(postion) {
x.innerHTML="Latitude: "+postion.coords.latitude+ "<br>Longitude: "+postion.coords.longitude;
}
</script>