Get your Geolocation usiing Java script and HTML5

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.
  • If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

    Recommended Posts:

    Prem Tiwari

    An engineer by profession and a passionate blogger by heart. Founder of (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

    Article Tags: , , ,