Hola
No has de tocar el js solo el HTML
Cita: <form id="form1" name="form1" method="post" action="">
<input name="key" type="text" id="key" />
<input type="button" onclick="buscar(document.getElementById('key').val ue)" value="Buscar" />
<br />
<div id="tabla">
<table width="300" border="1" cellpadding="1" >
<tr>
<td>Pepe</td>
<td>López</td>
</tr>
<tr>
<td>José</td>
<td>San Martín </td>
</tr>
</table>
</div>
</form>
Suerte