How to make JavaScript execute after page load?

前端 未结 24 2313
孤城傲影
孤城傲影 2020-11-21 05:55

I\'m executing an external script, using a

24条回答
  •  渐次进展
    2020-11-21 06:27

    Use this code with jQuery library, this would work perfectly fine.

    $(window).bind("load", function() { 
    
      // your javascript event
    
    });
    

提交回复
热议问题