The load
event is fired when a resource and its dependent resources have finished loading.
General info
- Specification
- DOM L3
- Interface
- UIEvent
- Bubbles
- No
- Cancelable
- No
- Target
- Document, Element
- Default Action
- None.
Properties
{{OpenEventProperties()}}{{UIEventProperties()}}{{CloseEventProperties()}}
Example
<script> document.addEventListener("load", function(event) { console.log("All resources finished loading!"); }); </script>
Note: More reliable is to add event listener on "window.addEventListener".
Related Events
{{LoadRelatedEvents()}}