html obtenez des éléments de forme

var x = document.getElementById("myForm");
var txt = "";
var i;
for (i = 0; i < x.length; i++) {
  console.info(x.elements[i].value);
}
unmeego