What is the use of the load event in js
Editor to share with you what is the use of load events in js, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
1, trigger the page to load completely on window (including all images, js files, css files and other external resources).
2. When all the frames are loaded, the frameset is triggered.
3. When the image is loaded, the element is triggered.
4. When the embedded content is loaded, the element is triggered.
Example
/ * the first method * / EventUtil.addHandler (window, "load", function (event) {/ / perform corresponding operations}) / * the second method * /