--- title: ClipboardEvent slug: Web/API/ClipboardEvent translation_of: Web/API/ClipboardEvent ---

{{APIRef("Clipboard API")}} {{SeeCompatTable}}

ClipboardEvent 介面表示了與修改剪貼簿相關的事件,包括 {{event("cut")}}、{{event("copy")}} 及 {{event("paste")}} 事件。

屬性

Also inherits properties from its parent {{domxref("Event")}}.

{{domxref("ClipboardEvent.clipboardData")}} {{readonlyInline}}
Is a {{domxref("DataTransfer")}} object containing the data affected by the user-initiated {{event("cut")}}, {{event("copy")}}, or {{event("paste")}} operation, along with its MIME type.

建構式

{{domxref("ClipboardEvent.ClipboardEvent", "ClipboardEvent()")}}
Creates a ClipboardEvent event with the given parameters.

方法

No specific methods; inherits methods from its parent {{domxref("Event")}}.

規範

Specification Status Comment
{{ SpecName('Clipboard API', '#clipboard-event-interfaces', 'ClipboardEvent') }} {{ Spec2('Clipboard API') }} Initial definition.

瀏覽器相容性

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} 4.0 {{CompatVersionUnknown}} {{CompatVersionUnknown}}
clipboardData {{CompatVersionUnknown}} {{CompatGeckoDesktop("22.0")}} 5.0 {{CompatVersionUnknown}} {{CompatVersionUnknown}}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} 4.0 {{CompatVersionUnknown}} {{CompatVersionUnknown}}
clipboardData {{CompatVersionUnknown}} {{CompatGeckoMobile("22.0")}} 5.0 {{CompatVersionUnknown}} {{CompatVersionUnknown}}

參見