--- title: load slug: Web/API/Window/load_event translation_of: Web/API/Window/load_event original_slug: Web/Events/load ---
O evento de load
é acionado quando um recurso e seus recursos
dependentes terminaram de carregar.
Property | Type | Description |
---|---|---|
target {{readonlyInline}} |
EventTarget |
The event target (the topmost target in the DOM tree). |
type {{readonlyInline}} |
DOMString |
The type of event. |
bubbles {{readonlyInline}} |
Boolean |
Whether the event normally bubbles or not. |
cancelable {{readonlyInline}} |
Boolean |
Whether the event is cancellable or not. |
view {{readonlyInline}} |
WindowProxy |
document.defaultView (window of the document) |
detail {{readonlyInline}} |
long (float ) |
0. |
<script> window.addEventListener("load", function(event) { console.log("Todos os recursos terminaram o carregamento!"); }); </script>