Get your Geolocation usiing Java script and HTML5

Prem Tiwari - - Google, JavaScript, Web Technologies

In this tutorial, we’re going to dive into HTML Geo location and hook the position into Google Maps API, to show our current location on Google Maps! Sounds fun.

In this post i will explain the to Get your Geo location using Java script and HTML5.

  • HTML5 Geo location is basically used to locate the position of current internet user.


    Include the Java Script File

    Java Script Code

    Add below javascript code in your html page before head tag closed.

    HTML Code

    Create index.html page and Copy paste below code.

    demo download.

  • About: Prem Tiwari

    Prem Tiwari is the founder of and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.

    Tags: , , ,

    Leave a Reply

    Your email address will not be published. Required fields are marked *

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