javascript dom get value of an element code example Example: get value of element html js var value = document.getElementById("theInput").innerHTML;