ClipboardEvent: clipboardData プロパティ
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2017.
ClipboardEvent.clipboardData
プロパティは、DataTransfer
オブジェクトを保持し、次のように使用します。
- クリップボードに置かれるデータを
cut
およびcopy
のイベントハンドラーから指定するため。ふつう、setData(format, data)
の呼び出しで行います。 - 貼り付けられるデータを
paste
イベントハンドラーから取得するため。ふつう、getData(format)
の呼び出しで行います。
値
DataTransfer
オブジェクト。
仕様書
Specification |
---|
Clipboard API and events # clipboardevent-clipboarddata |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
clipboardData |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
- Copy 関連イベント:
copy
,cut
,paste
- 所属先の
ClipboardEvent
インターフェイス - クリップボード API