Movatterモバイル変換


[0]ホーム

URL:


  1. Tecnologia Web para desenvolvedores
  2. APIs da Web
  3. Window
  4. load

Esta página foi traduzida do inglês pela comunidade.Saiba mais e junte-se à comunidade MDN Web Docs.

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 julho de 2015.

O evento de load é acionado quando um recurso e seus recursosdependentes terminaram de carregar.

Informações Gerais

Especificação

DOM L3

Interface

UIEvent

Bubbles

Não

Cancelavel

Não

Alvo

Window

Ação Padrão

Nenhuma.

Propriedades

PropertyTypeDescription
targetSomente leituraEventTargetThe event target (the topmost target in the DOM tree).
typeSomente leituraDOMStringThe type of event.
bubblesSomente leituraBooleanWhether the event normally bubbles or not.
cancelableSomente leituraBooleanWhether the event is cancellable or not.
viewSomente leituraWindowProxydocument.defaultView (window of the document)
detailSomente leituralong (float)0.

Exemplo

html
<script>  window.addEventListener("load", function (event) {    console.log("Todos os recursos terminaram o carregamento!");  });</script>

Eventos Relacionados

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp