copy text box in to clipbord onclick with javascript mdn code example
Example: how to access clipboard via js
navigator.clipboard.readText().then(clipText =>
document.getElementById("outbox").innerText = clipText);
navigator.clipboard.readText().then(clipText =>
document.getElementById("outbox").innerText = clipText);