<html>
<head>
<title>Informix</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
function vacio()
{
if(document.formulario.nombre.value == '')
alert("Debes ingresar un nombre");
}
</script>
</head>
<body>
<form name="formulario" action="testformulario.php" method="get" onSubmit="vacio()">
<p>Nombre:
<input name="nombre" type="text">
</p>
<p>
<input type="submit" name="Submit" value="Enviar">
</p>
</form>
</body>
</html>