www.patwalsh.co.uk

HTML5 Geolocation

In HTML5 there's a new property on the global navigator object called navigator.geolocation.

This enables the browser to find your location.

This page attempts to find your current location and then map it using Google Maps.

The browser will ask if its ok to find your location the first time it tries to.

Example:-