load
Das load
Ereignis wird ausgelöst, sobald eine Ressource und die von ihr abhängigen Ressourcen das Laden beendet haben.
General info
- Spezifikation
- Schnittstelle
-
UIEvent
- bubbles
-
Nein
- cancelable
-
Nein
- Ziel
-
Window,Document,Element
- Default Action
-
None.
Properties
Property | Type | Description |
---|---|---|
target Schreibgeschützt |
EventTarget (en-US) | The event target (the topmost target in the DOM tree). |
type Schreibgeschützt |
DOMString (en-US) | The type of event. |
bubbles Schreibgeschützt |
Boolean (en-US) | Whether the event normally bubbles or not. |
cancelable Schreibgeschützt |
Boolean (en-US) | Whether the event is cancellable or not. |
view Schreibgeschützt |
WindowProxy |
document.defaultView (en-US) (window of the document) |
detail Schreibgeschützt |
long (float ) |
0. |
Example
<script>
window.addEventListener("load", function(event) {
console.log("Alle Ressourcen haben das Laden beendet!");
});
</script>