aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/clipboardevent/clipboarddata/index.html
blob: 5e5f20aa7559df8d44df5bdacc40a615abe1ded4 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
title: ClipboardEvent.clipboardData
slug: Web/API/ClipboardEvent/clipboardData
tags:
  - API
  - Clipboard API
  - ClipboardEvent
  - Experimental
  - Method
  - Read-only
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")}}{{event("paste")}} イベントのドキュメントを参照してください。</p>

<h2 id="Syntax" name="Syntax">構文</h2>

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

<h2 id="Specifications" name="Specifications">仕様</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">仕様書</th>
   <th scope="col">策定状況</th>
   <th scope="col">備考</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{ SpecName('Clipboard API', '#widl-ClipboardEvent-clipboardData', 'ClipboardEvent.clipboardData') }}</td>
   <td>{{ Spec2('Clipboard API') }}</td>
   <td>初期定義。</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザ実装状況</h2>

<p>{{ CompatibilityTable() }}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>機能</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>基本サポート</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoDesktop(22)}}</td>
   <td>5.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>機能</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>基本サポート</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatGeckoMobile(22)}}</td>
   <td>5.0</td>
   <td>{{CompatVersionUnknown}}</td>
   <td>{{CompatVersionUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="See_also" name="See_also">関連項目</h2>

<ul>
 <li>Copy 関連イベント: {{event("copy")}}{{event("cut")}}{{event("paste")}}</li>
 <li>このプロパティが属する {{domxref("ClipboardEvent")}} インターフェイス。</li>
</ul>