Learn html - html tutorial - Onload attribute in html - html examples - html programs
The onload attribute executes a script when an object has been loaded.
onload is most often used within the <body> element to execute a script once a web page has entirely loaded all content (including images, script files, CSS files, etc.).
For input elements, the onload attribute is only supported though <input type="image">
The onload attribute may be used to check the user's browser type and version, and load the proper version of the web page based on the information.
The onload attribute is a section of the Event Attributes.