Obtener valores de formulario en JavaScript

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