What does window.onload mean?
JuJo
JuJo 2019-02-26 22:31:42
0
3
1395

What does window.onload mean?

Why not use it directly: box=document.getElementById("box")

This should also be used globally, right?

JuJo
JuJo

reply all (1)
韦小宝

The function of window.onload is to refresh the page. The variables declared in box=document.getElementById("box") are global variables

  • reply Got it, thank you teacher
    JuJo author 2019-02-28 10:44:40
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!