aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/clipboardevent/clipboarddata/index.html
blob: 7334fa7e832bad190c2e2b837e9f9d66fdee2bff (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
title: ClipboardEvent.clipboardData
slug: Web/API/ClipboardEvent/clipboardData
translation_of: Web/API/ClipboardEvent/clipboardData
---
<p>{{ apiref("Clipboard API") }} {{SeeCompatTable}}</p>

<p><code><strong>ClipboardEvent.clipboardData</strong></code> 속성은 {{domxref("DataTransfer")}} 객체를 가지고 있으며, 아래와 같은 목적으로 사용될 수 있습니다:</p>

<ul>
 <li>{{event("cut")}}{{event("copy")}} 이벤트 핸들러로부터 어떤 데이터가 클립보드에 들어있는지, 일반적으로 {{domxref("DataTransfer.setData", "setData(format, data)")}} 함수를 호출하여 확인하는 것;</li>
 <li>{{event("paste")}} 이벤트 핸들러로부터 일반적으로 {{domxref("DataTransfer.getData", "getData(format)")}} 함수를 호출하여 붙여넣어진 데이터를 얻는 것.</li>
</ul>

<p>더 많은 정보를 확인하려면 {{event("cut")}}, {{event("copy")}}, and {{event("paste")}} 이벤트에 관한 문서를 참고하세요.</p>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox"><em>data</em> = <em>ClipboardEvent</em>.clipboardData</pre>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{ SpecName('Clipboard API', '#widl-ClipboardEvent-clipboardData', 'ClipboardEvent.clipboardData') }}</td>
   <td>{{ Spec2('Clipboard API') }}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>



<p>{{Compat("api.ClipboardEvent.clipboardData")}}</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>Copy-related events: {{event("copy")}}{{event("cut")}}{{event("paste")}}</li>
 <li>The {{domxref("ClipboardEvent")}} interface it belongs to.</li>
</ul>