You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!

visibilitychange 이벤트는 브라우저 탭의 컨텐츠가 visible 또는 hidden 상태로 변화할 때 발생된다.

Bubbles Yes
Cancelable No
Interface event
Event handler property onvisibilitychange


document.addEventListener("visibilitychange", function() {
  console.log( document.visibilityState );


Specification Status Comment
Page Visibility (Second Edition)
The definition of 'visibilitychange' in that specification.

브라우저 호환성

No compatibility data found. Please contribute data for "api.Document.visibilitychange" (depth: 1) to the MDN compatibility data repository.

같이 보기