//HTML <input type="text" name="name" id="uniqueID" value="value" /> //JS var nameValue = document.getElementById("uniqueID").value;