WebIDLpedia

Clipboard interface

Definition

Clipboard API and events defines Clipboard



[SecureContext, Exposed=Window]
interface Clipboard : EventTarget {
  Promise<ClipboardItems> read(optional ClipboardUnsanitizedFormats formats = {});
  Promise<DOMString> readText();
  Promise<undefined> write(ClipboardItems data);
  Promise<undefined> writeText(DOMString data);
};

Methods and attributes that return objects implementing Clipboard

Referring IDL interfaces/dictionaries