how to get current location latitude and longitude using javascript : i am using below code in my project

    <script>
    var x=document.getElementById("demo");
    function getLocation()
      {
      if (navigator.geolocation)
        {
        navigator.geolocation.getCurrentPosition(showPosition);
        }
      else{x.innerHTML="Geolocation is not supported by this browser.";}
      }
    function showPosition(position)
      { 
      //x.innerHTML="Latitude:" + position.coords.latitude + 
      //"<br>Longitude: " + position.coords.longitude;    
      var dataString = 'Latitude='+ position.coords.latitude + '&Longitude='+ position.coords.longitude;
      alert(dataString);
      //AJAX code to submit form.
      //$('#loginprocessing').html('<img src="../images/loading2.gif" alt=" " title="" id="loads" style="margin-left: 0PX;">Loading...');
       $.ajax({
          type: "GET",
          url: "getvalue.php",
          data: dataString,
          cache: false,
    	  success: function(result){
       $("#demovalues").html(result);
    	  }
      });
      }
    </script>  

its working fine in my local but in server i got an error like

Deceptive site ahead
Attackers on geospeedy.com may trick you into doing something dangerous like installing software or revealing your personal information (for example, passwords, phone numbers, or credit cards). Learn more

Automatically send some system information and page content to Google to help detect dangerous apps and sites. Privacy policy

please suggest any one its very urgent
 