Notification when a window you opened via JS has loaded?
If I open a window via
mywin = win开发者_开发百科dow.open(...);
Is there a way I can be notified when mywin
has loaded? I mean the opener be notified?
I think onload
event is what you are looking for:
mywin.onload = function(){
alert('The window has loaded');
};
This should work.
$(document).ready(function(){
// Do something
});
精彩评论