Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
"onload [your] window" ??? what do you mean? you can attach an onload function event handler to the window object by many ways: + use the onload attribute of <body> element, either hardcoded in html source code, or by assigning a function at run time, or even by defining it through the use of addEventListener() method... + assign or attach (again with addEventListener) to the onload property / event of window (or document) object assigning the 'onload' property allow you to define only one event handler (reassigning will overide previous value setted), while addEventListener() could define many (cumulative) ;)
2nd Jun 2021, 6:02 AM
visph
visph - avatar