DOM

settings_applicationsEventTarget  >   settings_applicationsNode  >   settings_applicationsElement  >   settings_applicationsHTMLElement  >   settings_applicationsHTMLBodyElement

DOM

Editing
  • bug_report

Eventresize

insert_drive_fileEventinterfaceopen_in_new
Event interface는 HTMLBodyElement에서 resize 이벤트 타입으로 구현된다.

HTMLBodyElement의 resize는 Event interface의 이벤트 타입이고 이벤트 리스너에서 사용된다.

기본 개요

창(window) 크기가 변경될 때 발생한다. 일반적으로 뷰포트 크기 변경이 있는 경우 발생한다.

설명

일부 구형 웹브라우저에서는 HTML 요소에 resize 이벤트 핸들러를 등록하는 것이 가능했지만 현재는 window 객체에 등록된 핸들러만이 reisze 이벤트를 수신한다.

구문

형식
window.addEventListener("resize", function() { });

명세

typeresize
bubblesno
cancelableno
targetVisualViewport, Window
handleryes

버전 명세

CSSOM View Module
#eventdef-window-resize

지원 웹브라우저