title: How does web browser geolocation work?
body: <p>I would like to know how geolocation works in a web browser like Google Chrome or Firefox?</p>
  
  <p>I can access this web site <a href="http://html5demos.com/geo" rel="noreferrer">http://html5demos.com/geo</a> and when I allow the browser to send my location, it shows my current location.</p>
  
  <p>But when I send that URL to my friends to test it, it doesn't work for all of them. How does geolocation work and how do I implement it to get the correct location?</p>