aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/document/hidden/index.html
blob: 13c6f0a5dac3bf9721e48e4a1cef83ab783096f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
title: Document.hidden
slug: Web/API/Document/hidden
tags:
  - API
  - Document
  - Property
  - Reference
translation_of: Web/API/Document/hidden
---
<div>{{ ApiRef("DOM") }}</div>

<p><code><strong>Document.hidden</strong></code> 읽기 전용 속성은 페이지가 숨겨졌는지 여부를 {{jsxref("Boolean")}} 값으로 나타냅니다.</p>

<h2 id="예제">예제</h2>

<pre class="brush:js;">document.addEventListener("visibilitychange", function() {
  console.log(document.hidden);
  // 숨김 여부가 변했을 때의 행동
});</pre>

<h2 id="명세">명세</h2>



<p>{{Compat("api.Document.hidden")}}</p>