load
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itâs been available across browsers since иÑÐ»Ñ 2015 г..
СобÑÑие load пÑоиÑÑ
Ð¾Ð´Ð¸Ñ ÐºÐ¾Ð³Ð´Ð° ÑеÑÑÑÑ Ð¸ его завиÑимÑе ÑеÑÑÑÑÑ Ð·Ð°ÐºÐ¾Ð½Ñили загÑÑжаÑÑÑÑ.
General info
- СпеÑиÑикаÑиÑ
- ÐнÑеÑÑейÑ
-
UIEvent
- ÐÑплÑваеÑ
-
Ðа
- ÐÑменÑемое
-
ÐеÑ
- ЦелÑ
-
Window
- Default Action
-
ÐеÑ.
СвойÑÑва
| Property | Type | Description |
|---|---|---|
target ТолÑко Ð´Ð»Ñ ÑÑÐµÐ½Ð¸Ñ |
EventTarget |
The event target (the topmost target in the DOM tree). |
type ТолÑко Ð´Ð»Ñ ÑÑÐµÐ½Ð¸Ñ |
DOMString |
The type of event. |
bubbles ТолÑко Ð´Ð»Ñ ÑÑÐµÐ½Ð¸Ñ |
Boolean |
Whether the event normally bubbles or not. |
cancelable ТолÑко Ð´Ð»Ñ ÑÑÐµÐ½Ð¸Ñ |
Boolean |
Whether the event is cancellable or not. |
view ТолÑко Ð´Ð»Ñ ÑÑÐµÐ½Ð¸Ñ |
WindowProxy |
document.defaultView (window of the document) |
detail ТолÑко Ð´Ð»Ñ ÑÑÐµÐ½Ð¸Ñ |
long (float) |
0. |
ÐÑимеÑ
html
<script>
window.addEventListener("load", function (event) {
console.log("All resources finished loading!");
});
</script>