What does window.onload mean?
Why not use it directly: box=document.getElementById("box")
This should also be used globally, right?
The function of window.onload is to refresh the page. The variables declared in box=document.getElementById("box") are global variables
The function of window.onload is to refresh the page. The variables declared in box=document.getElementById("box") are global variables