The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The read() method of the Clipboard interface requests a copy of the clipboard's contents, fulfilling the returned Promise with the data.
The readText() method of the Clipboard interface returns a Promise which fulfills with a copy of the textual contents of the system clipboard.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe write() method of the Clipboard interface writes arbitrary ClipboardItem data such as images and text to the clipboard, fulfilling the returned Promise on completion.
The writeText() method of the Clipboard interface writes the specified text to the system clipboard, returning a Promise that is resolved once the system clipboard has been updated.
The
Clipboardinterface of the Clipboard API provides read and write access to the contents of the system clipboard. Available only in secure contexts.MDN Reference