select all elements javascript 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();