javascript – Notification when a window you opened via JS has loaded? – Education Career Blog

If I open a window via

mywin =;

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.

   // Do something

Leave a Comment