Get latitude/longitude from Google Maps

When using Google Maps, you may find that you want to get the latitude and longitude of a position. One ease way to do this is make sure that the map is centered on the position and then type the following in the browser address bar:

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