title: navigator.geolocation.watchPosition - frequency
body: <p>I tried this code :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Location Location Location&lt;/title&gt;
  
      &lt;script type="text/javascript" charset="utf-8"&gt;
  
      var watchID = null;
  
      // PhoneGap is ready
      //
      function f() {
          // Update every 1 ms seconds
          var options = {enableHighAccuracy: true,timeout: 5000,maximumAge: 0,desiredAccuracy: 0, frequency: 1 };
          watchID = navigator.geolocation.watchPosition(onSuccess, onError, options);
      }
  
      // onSuccess Geolocation
      //
      function onSuccess(position) {
          var xmlhttp;
          if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
              xmlhttp=new XMLHttpRequest();
          }else{// code for IE6, IE5
              xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
          }       
          var str = 'Latitude: '  + position.coords.latitude      + '&lt;br&gt;' +
                    'Longitude: ' + position.coords.longitude     + '&lt;br&gt;' +
                    'Timestamp: ' + position.timestamp     + '&lt;br&gt;' ;
          var url = "load.php";
          var params = "data="+str;
          xmlhttp.open("GET", url+"?"+params, true);
          document.body.innerHTML += str;
          document.writeln("line 33");
          xmlhttp.send();
          //document.writeln("send");
          //document.writeln(str);
      }
  
      // clear the watch that was started earlier
      // 
      function clearWatch() {
          if (watchID != null) {
              navigator.geolocation.clearWatch(watchID);
              watchID = null;
          }
      }
  
      // onError Callback receives a PositionError object
      //
      function onError(error) {
        alert('code: '    + error.code    + '\n' +
              'message: ' + error.message + '\n');
      }
  
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;p id="geolocation"&gt;Watching geolocation...&lt;/p&gt;
      &lt;button onclick="f();"&gt; Watch&lt;/button&gt;     
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>you can see that i add  </p>
  
  <pre><code>var options = {......, frequency: 1 };
  watchID = navigator.geolocation.watchPosition(onSuccess, onError, options);
  </code></pre>
  
  <p>But I am getting new result if and only if I enter to tab and exit and enter agin. </p>
  
  <p>What can I do?</p>