Jquery: how to check if a newly opened window has been fully loaded? / window loads an external page (like www.yahoo.com)

后端 未结 3 1631
孤街浪徒
孤街浪徒 2020-12-20 18:05

the following doesn\'t work , why ?

var myWindow=null;
myWindow = window.open(targetUrlVar,\"_blank\",\"resizable=yes\");
$(myWindow).load(function(){
    a         


        
3条回答
  •  误落风尘
    2020-12-20 18:45

    $(document).ready(function() {
       //perform tasks, DOM is loaded
    });
    

    Hope this helps.

提交回复
热议问题