Try and see if this shouldn't do the trick, it did for me:
var a_window = window.open('empty.html',{
"position": "center",
"focus": true,
"toolbar": false,
"frame": true
});
onload = function() {
alert('Help it\'s loaded!');
};
Just so you know, I think the onload triggers for every window, so remember to unset it when you don't need it:
onload = null;
You can also try this for the individual window:
a_window.onload = function() {
alert('Help it\'s loaded!');
};