document select all code example
Example 1: select all elements javascript
var elements = document.getElementsByTagName("*");
Example 2: js select all
// This will select all of the text in the textarea or input called element
element.select();
var elements = document.getElementsByTagName("*");
// This will select all of the text in the textarea or input called element
element.select();