+ 1

Can somebody describe "onload "and"onunload"?

26th Jan 2016, 7:19 PM
Mohd Asif
Mohd Asif  - avatar
2 Réponses
+ 7
The onload function is called once the browser has fully loaded the web page (HTML document) and populated the DOM. The onunload function is called once the DOM is unloaded from the browser (for example when you leave the page by clicking on a link or closing the browser).
5th Apr 2016, 9:13 PM
Julian
+ 1
@SamualTees I think you should not use html tag for comments, inside script tag. for more information you can use chrome console. This will let you know where is an error.
18th Sep 2016, 3:11 PM
Himanshu Manjhi
Himanshu Manjhi - avatar