Get your Geolocation usiing Java script and HTML5

| Last Updated: | In: Google, HTML / CSS, Javascript & Ajax


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.

    your-location

    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.
  • Tags: , , ,


    About: Prem Tiwari

    Prem Tiwari is founder of freewebmentor.com and Software developer from New Delhi (India). Follow Prem's development codes on facebook, and make sure you check out freewebmentor.com for the latest in web development related Tips with the complete code.


    You may also like:

    Follow us!

    Get Free Access of 350+ Scripts

    Don't worry you'll not be spammed!

    Featured eBook

    WordPress Security Guide

    Learn how to implement security guideline in your WordPress site...

    DOWNLOAD

    Pincode Finder

    pincode-finder tool

    Online Pincode Finder

    Best tool to locate post Office address and pincodes of all india...

    SEARCH NOW