Search code examples
htmlgeolocation

alternative to geo location html4


Is there any counterpart to geolocation(html 5) in html 4. Was there any method of determining the user's location in html4? One more question that I have is how does the geolocation get the user's location, from the IP Address or something else?


Solution

  • HTML5 geolocation leaves the actual means of finding the location up to the browser/client to implement. It only standardizes the Javascript API by which a website can get the location from the browser. The browser may use actual GPS hardware, known locations of nearby WiFi spots, GSM cell tower triangulation or whatever else it can. Browsers may support this standardized API without supporting any of the other parts of what is collectively called HTML5.

    Before this standardization, there was no standard. There were some proprietary/plugin based things like Google Gears, but they were never widely adopted or supported. The most common way to find a client's location was, and still is, through the IP address and large databases that map IPs to known locations.