HTML | onload Event Attribute
This attribute works when an object has been loaded. This attribute mostly used within the <body> element to execute a script. It can be used with other elements as well. This attribute is used to check the visitor’s browser type and browser version, and load the proper version of the web page based on the information.
<element onload = "script">
Attribute Value: This attribute contains single value script and it runs when onload event triggered. This attribute is associated with many HTML elements.
Supported Browsers: The browser supported by onload attribute are listed below:
- Internet Explorer
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.