Back to Content

ClipboardEvent

files/en-us/web/api/clipboardevent/index.md

latest1.4 KB
Original Source

{{APIRef("Clipboard API")}}

The ClipboardEvent interface of the Clipboard API represents events providing information related to modification of the clipboard, that is {{domxref("Element/cut_event", "cut")}}, {{domxref("Element/copy_event", "copy")}}, and {{domxref("Element/paste_event", "paste")}} events.

{{InheritanceDiagram}}

Constructor

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

Instance properties

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

  • {{domxref("ClipboardEvent.clipboardData")}} {{ReadOnlyInline}}
    • : A {{domxref("DataTransfer")}} object containing the data affected by the user-initiated {{domxref("Element/cut_event", "cut")}}, {{domxref("Element/copy_event", "copy")}}, or {{domxref("Element/paste_event", "paste")}} operation, along with its MIME type.

Instance methods

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also