How to react to a students panic attack in an oral exam? Nothing is visible anymore to the end user. Finally, assign an image URL to the src attribute. Is a collection of years plural or singular? This can be used with the body element to execute a script after the webpage has completely loaded. We can do something there that doesn't involve a delay, like closing related popup windows. How to prove that the supernatural or paranormal doesn't exist? First, create an image element after the document has been fully loaded by placing the code inside the event handler of the windows load event. How to clear form after submit in Javascript without using reset? Firefox, Chrome and Opera autofill forms on DOMContentLoaded. The onload attribute can be used to check the visitor's browser type and browser version, and load the proper version of the web page based on the information. ,