Definition, Meaning & Synonyms
onload
noun
ˈɒnloʊd
Definition
Onload refers to an event that occurs when a web page or an element in a page has finished loading.
Examples
1. The onload event triggers a JavaScript function that displays a welcome message to the user.
2. Developers often use the onload attribute in the <body>
tag to run scripts after the page is ready.
3. When the image is fully loaded, the onload callback is executed to render the gallery.
Meaning
It is typically used in the context of web development to execute a specific function or carry out an action only after all page elements are fully loaded.
Synonyms
- load event
- loading complete
- page load