javascript get innerText from div id push to array code example Example: change innertext javascript element.innerText = "Hello World";