+ 1
what is Window.onload()
I am alittle thrown off by the the window,onload() during the try it yourself section.
1 Resposta
+ 3
The onload event occurs when an object has been loaded.
The Window interface represents a window containing a DOM document.
So, onload can also be used with other objects. For window, by default, it is fired when the entire page loads, including its content (images, css, scripts, etc.)