Definition, Meaning & Synonyms
onload
noun
ˈɒnloʊd
![](https://vocabdictionary.com/wp-content/uploads/2024/11/brand_identity-01.png)
Definition
Onload refers to an event that occurs when a web page or an element in a page has finished loading.
![](https://vocabdictionary.com/wp-content/uploads/2024/11/migrate-02.png)
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.
![](https://vocabdictionary.com/wp-content/uploads/2024/11/ux-02.png)
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.
![](https://vocabdictionary.com/wp-content/uploads/2024/11/text-file-font.png)
Synonyms
- load event
- loading complete
- page load