js how to interact with clipboard code example
Example 1: copy to clipboard javascript dom
navigator.clipboard.writeText('Text');
Example 2: how to access clipboard via js
navigator.clipboard.readText().then(clipText =>
document.getElementById("outbox").innerText = clipText);