aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/api/document/cut_event/index.md
blob: 53665dd28938cb96041fc71b73862878ac821de0 (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
52
53
54
55
56
57
58
59
60
61
62
---
title: 'Document: cut 이벤트'
slug: Web/API/Document/cut_event
tags:
  - API
  - Clipboard API
  - Cut
  - Event
  - Reference
  - Web
  - Document
browser-compat: api.Document.cut_event
translation_of: Web/API/Document/cut_event
---
{{APIRef}}

**`cut`** 이벤트는 사용자가 브라우저의 사용자 인터페이스를 통해 복사했을 때 발생합니다.

<table class="properties">
  <tbody>
    <tr>
      <th scope="row">버블링</th>
      <td>예</td>
    </tr>
    <tr>
      <th scope="row">취소 가능</th>
      <td>예</td>
    </tr>
    <tr>
      <th scope="row">인터페이스</th>
      <td>{{domxref("ClipboardEvent")}}</td>
    </tr>
    <tr>
      <th scope="row">이벤트 처리기 속성</th>
      <td>{{domxref("HTMLElement/oncut", "oncut")}}</td>
    </tr>
  </tbody>
</table>

`cut` 이벤트의 원 대상은 복사 동작의 대상인 {{domxref("Element")}}입니다. {{domxref("Document")}}에서 수신할 경우 캡처 또는 버블링 단계의 이벤트를 받게 됩니다. 이벤트에 대한 자세한 정보는 [Element: cut 이벤트](/ko/docs/Web/API/Element/cut_event)에서 확인하세요.

## 예제

```js
document.addEventListener('cut', (event) => {
    console.log('잘라내기 동작 실행')
});
```

## 명세

{{Specifications}}

## 브라우저 호환성

{{Compat}}

## 같이 보기

- 관련 이벤트: {{domxref("Document/copy_event", "copy")}}, {{domxref("Document/paste_event", "paste")}}
- {{domxref("Element")}}를 대상으로 한 같은 이벤트: {{domxref("Element/cut_event", "cut")}}
- {{domxref("Window")}}를 대상으로 한 같은 이벤트: {{domxref("Window/cut_event", "cut")}}