How to copy all the text from the input line by clicking on the input line?

There is a line entry added JS-what you need to add that would upon clicking it, all text from the input string was copied to the clipboard?
$('body').append('<input type="text" name="COL" id="COL" size="7" accesskey="r" placeholder="COL" style="border-width: 0px;">') 
 $("#COL").css("position", "absolute").css("top", 200).css("left", 370).css("background-color", "transparent").css({ color: "red" });
July 9th 19 at 10:57
1 answer
July 9th 19 at 10:59
clipboard.js and input.on focus
Add the script to the page using Tampermonkey and I don't know how to connect there of HPD and how to write what you suggested... - Susie commented on July 9th 19 at 11:02
: ... - blake_Eichma commented on July 9th 19 at 11:05
: What???? - Susie commented on July 9th 19 at 11:08

Find more questions by tags HTMLCSSJavaScript