how to get data from clipboard javascript code example
Example 1: how to access clipboard via js
navigator.clipboard.readText().then(clipText =>
document.getElementById("outbox").innerText = clipText);
Example 2: javascript get image data from clipboard
var items = pasteEvent.clipboardData.items;