The ClipboardEvent() constructor returns a new ClipboardEvent, representing an event providing information related to modification of the clipboard, that is cut, copy, and paste events.
new ClipboardEvent(type)
new ClipboardEvent(type, options)typeA string with the name of the type of the ClipboardEvent. It is case-sensitive and browsers set it to copy, cut, or paste.
options OptionalAn object that, in addition of the properties defined in Event(), has the following properties:
clipboardData OptionalA DataTransfer object containing the data concerned by the clipboard event. It defaults to null.
dataType OptionalA string containing the MIME-type of the data contained in the data argument. It defaults to "".
data OptionalA string containing the data concerned by the clipboard event. It defaults to "".
A new ClipboardEvent object.
copy, cut, pasteClipboardEvent interface it belongs to.