We cannot append to innerHTML in this way:
divOutput.innerHTML += "" + name + " " + lname + "";
// could use
divOutput.innerHTML = divOutput.innerHTML + name + " " + lname;
You will need to be careful when using both onsubmit (for the form) and onclick on the submit button, as they kinda overlap - but it's probably not a concern with your current code.