<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Geolocation</title> | |
<script> | |
var positionCount = 0; | |
function gotPos(position) { | |
positionCount++; | |
} | |
function initiate_watchPosition() { | |
navigator.geolocation.watchPosition(gotPos, function() { }, { }); | |
} | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |