какой вопрос
<tr>
<td align="left" style="padding:5px;font-weight:bold;" width="40%">Имя:</td>
<td align="left" style="padding:5px;" width="60%">
<input type="text" name="name" value="">
</td>
</tr>
<tr>
<td align="left" style="padding:5px;font-weight:bold;" width="40%">Фамилия:</td>
<td align="left" style="padding:5px;" width="60%">
<input type="text" name="fio" value="">
</td>
</tr>
<input type="button" value="Сгенерировать" id="generator">
<hr>
<input id="result" value="">
<script>
window.onload = function () {
document.getElementById('generator').onclick = function () {
var name = document.querySelector("input[name='name']").value;
var fio = document.querySelector("input[name='fio']").value;
document.getElementById('result').value = name + fio;
}
}
</script>