The select() method of the HTMLTextAreaElement interface selects the entire contents of the <textarea> element. In addition, the select event is fired. The select() method does not take any parameters and does not return a value.
select()None.
None (undefined).
const textarea = document.getElementById("text-box");
textarea.select();<textarea>select eventaddEventListener()::selection pseudo-element