The load event fires at the end of the document loading operation. At this point, all of the objects in the document exist in the DOM, and all the images, scripts, links, and sub-frames include finished loading.
The load event fires at the end of the document loading operation. At this point, all of the objects in the document exist in the DOM, and all the images, scripts, links, and sub-frames include finished loading.
The DOM event DOM Content Loaded will fire after the DOM for the page has been created, but do not wait for other resources to complete loading. This stands preferred in certain cases when you do not require the full page to be loaded before initializing.
To learn more about Document Object Model refer to:
https://brainly.com/question/25894893
#SPJ4