This is a simple javascript to take the geolocation and show it on a webpage.
The example starts with a default HTML 5 page and the part from tags scripts get the geolocation and using innerHTML is shown on the webpage.
To see the location then is need to use this: navigator.geolocation.getCurrentPosition.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.