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 the new location and I'm loaded!");
};
Is there any way to have a callback when the window's new location is loaded? (The above code doesn't work.)
location.href
causes the current page to close and a new page to open so any event on the old page can't be triggered when a new page is loaded – Encratia