what is Window.onload() | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is Window.onload()

I am alittle thrown off by the the window,onload() during the try it yourself section.

4th Jul 2019, 2:02 AM
1_for_JayJay
1_for_JayJay - avatar
1 Answer
+ 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.)
4th Jul 2019, 2:13 AM
yuulye
yuulye - avatar