This a simple sample of how to use HTML5 Geolocation by using Javascript