[[Ask for permission]]
<script> if(window.geolocation.available() ) { var geolocation = window.geolocation.getLocation(); alert("Latitude: " + geolocation.latitude + " Longitude:" + geolocation.longitude); } </script>