A neat trick to find the longitude and latitude of a Google Maps location

This is a pretty clever method to find the coordinates of a location in Google Maps. Tech-Recipes explains:

Looking up an address in Google Maps will center the map on that address if it was found. Because this trick provides the latitude and longitude of the center of the map, moving the map around manually after that will change the center position and this technique will not work accurately.

When the location you want is in the center of the map, copy and paste this code into the location bar of your browser and press enter:

javascript:void(prompt('',gApplication.getMap().getCenter()));

Nifty.

NOTE: This article was first published on The Web Developer's Blog, which has now been discontinued.