The speaker defines a function named "loaded" that is called each time an HTML element is loaded. The function uses the "document.getElementById" method to access the division tag and the "innerHTML" property to add new text to the existing text inside the division tag. The speaker also adds the "loaded" function to the "on load" event of an element, in this case the body tag, so that the function is called each time the body tag is loaded.
The speaker then shows how to add a parameter to the "loaded" function to display the name of the element that has been loaded and uses this on the "on load" event of the style and iFrame tags. They also show how to add the "on load" event to an image tag and provide the URL for the image that is to be loaded.
on load event,