Easy Tutorial
❮ Met Node Hasattributes Dom Obj Dialog ❯

Image onload Event


Definition and Usage

The onload event is executed immediately after an image has finished loading.

Syntax

Parameter Description
JavaScriptCode Required. The JavaScript code to be executed after the event is triggered.

Browser Support

All major browsers support the onload event.


Example

Display "Image loaded" after the image has finished loading:

❮ Met Node Hasattributes Dom Obj Dialog ❯