how to change the value or name of input tags with DOM javascript code example Example: js html tag valu var value = document.getElementById("theInput").innerHTML;