1<!DOCTYPE html> 2<html> 3 <head> 4 <title>Geolocation</title> 5 <script> 6 var positionCount = 0; 7 function gotPos(position) { 8 positionCount++; 9 } 10 function initiate_watchPosition() { 11 navigator.geolocation.watchPosition(gotPos, function() { }, { }); 12 } 13 </script> 14 </head> 15 <body> 16 </body> 17</html> 18