Movatterモバイル変換


[0]ホーム

URL:


  1. Веб-технологии для разработчиков
  2. Интерфейсы веб API
  3. Window
  4. load

This page was translated from English by the community.Learn more and join the MDN Web Docs community.

View in EnglishAlways switch to English

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

Спецификация

DOM L3

Интерфейс

UIEvent

Всплывает

Да

Отменяемое

Нет

Цель

Window

Default Action

Нет.

Свойства

PropertyTypeDescription
targetТолько для чтенияEventTargetThe event target (the topmost target in the DOM tree).
typeТолько для чтенияDOMStringThe type of event.
bubblesТолько для чтенияBooleanWhether the event normally bubbles or not.
cancelableТолько для чтенияBooleanWhether the event is cancellable or not.
viewТолько для чтенияWindowProxydocument.defaultView (window of the document)
detailТолько для чтенияlong (float)0.

Пример

html
<script>  window.addEventListener("load", function (event) {    console.log("All resources finished loading!");  });</script>

Связанные события

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp