JD Isaacks
JD Isaacks

Reputation: 57974

Notification when a window you opened via JS has loaded?

If I open a window via

mywin = window.open(...);

Is there a way I can be notified when mywin has loaded? I mean the opener be notified?

Upvotes: 0

Views: 76

Answers (2)

Sarfraz
Sarfraz

Reputation: 382746

I think onload event is what you are looking for:

mywin.onload = function(){
  alert('The window has loaded');
};

Upvotes: 1

Stephen
Stephen

Reputation: 3084

This should work.

$(document).ready(function(){ 
   // Do something
}); 

Upvotes: 0

Related Questions