Running javascript code on page load, without using the onload tag

前端 未结 5 1209
傲寒
傲寒 2020-12-18 10:33

How can I run a JavaScript code when the page loads without using the onload tag?

I\'m trying to run this script:



        
5条回答
  •  离开以前
    2020-12-18 11:25

    maybe put a javascript code at the end of the page just before the closing tag.

    .
    .
    .
    
    
    

提交回复
热议问题