Since all good answers here, but no one checked!? %-), i just post a jquery + google apis exercise!
you may find sometimes usefull! ;-)
Google Map - Current location
UPDATE:
ok, just for make things clear,
nothing special with setOnLoadCallback ; it's just a google way of doing:
inline body + js
<body onload="callback()">
OR clasic js
window.onload = callback;
OR
window.onload = function(){ callback(); };
OR jquery onload
$(window).bind("load", function(){});
OR
$(window).load( function() { /*do something onload */});
OR jquery DOM ready
$(document).ready(function(){ /*do something on dom ready */ });
OR
$(function() { /*do something on dom ready */});
All theese work the same of Google Load OR better Google Load load the same fo All theese! ;-)
NOTE: as Matthew Flaschen say,
the Load method is not the same of Ready in the sense of, the first can be used for access elements after entire page is loaded (images and other objects that you have attached into the page), the second can be used for access elements after the DOM is ready! hope now is all clear! doh!
so the two method are not the same but in some circumstances you can use it for make similar things!