Essentially what I\'d like to do is something to the effect of this:
window.location.href = \"some_location\";
window.onload = function() {
alert(\"I\'m th
Setting window.location.href to a new value tells the browser to simply go to the next page.
Like so:
window.location.href = "http://www.google.com/";
Once the browser goes to google.com, that's it, your Javascript is no longer executing, and there is no way for you to have any sort of callback, because the browser is no longer running your page.
So, the answer is no.