Detecting the onload event of a window opened with window.open
        Posted  
        
            by Chris T
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Chris T
        
        
        
        Published on 2010-06-13T02:31:03Z
        Indexed on 
            2010/06/13
            2:52 UTC
        
        
        Read the original article
        Hit count: 318
        
 window.popup = window.open($(this).attr('href'), 'Ad', 'left=20,top=20,width=500,height=500,toolbar=1,resizable=0');
 $(window.popup).onload = function()
        {
                alert("Popup has loaded a page");
        };
This doesn't work in any browser I've tried it with (IE, Firefox, Chrome). How can I detect when a page is loaded in the window (like an iframe onload)?
© Stack Overflow or respective owner