Gracias
Código:
<HTML>
<HEAD>
<TITLE>Insertar.php</TITLE>
<script>
function myf()
{
window.alert(document.getElementById("nombre").value);
// window.alert("Hola mundo");
}
</script>
<input type="text" name="nombre" maxlength="20" size="20" />
<input type="text" name="nombre2" maxlength="20" size="20" />
<input type="button" name="boton" value="Buscar" onclick="myf()" />
</HEAD>
<BODY>
<?
?>
</BODY>
</HTML>


