开发者

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
}); 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜