Danke.
<form>
<input id="vorname" />
<input id="nachname" />
<input id="name" /> "
<button type="button" id="go">Ausführen</button>
</form>
function abc ()
{
var a = document.getElementById("vorname").value+" "+document.getElementById("nachname").value;
window.onload = function () { document.getElementById("name").value = a;
};
}
document.getElementById("go").onclick = abc;
wäre das dann so korrekt?