I'm still learning JS, but I found this on github clipboard.js here . I would make this comment, but did not have a reputation.
<span id="spanId">text here</span> <button class="btn" data-clipboard-target="#spanId"> <img src="assets/clippy.svg" alt="Copy to clipboard"> </button>
ive also never saw an input type button before she looked at the mozilla dev network here , and it says that "... it was replaced in HTML5 with an element." Therefore, I might think that this is the best way to do this.
Lmnoppy
source share