Jquery: how to check if a newly opened window has been fully loaded? / window loads an external page (like www.yahoo.com)
问题 the following doesn't work , why ? var myWindow=null; myWindow = window.open(targetUrlVar,"_blank","resizable=yes"); $(myWindow).load(function(){ alert('hello'); }); Though MyWindow is a Window reference, no check is performed to see whether or not it has been fully loaded. i thought $(window).load(...) would work here for "window " being replaced by "MyWindow". the following works: $(myWindow).load(function(){ alert('hello'); }); for targetUrlVar being an internal resource (like a page