Sådan. Her er et eksempel. Koden er ikke så nydeligt sat op. Men det kan du vel selv fikse
<html>
<head>
<script language="javascript">
function checkpass()
{
if (test.user.value.length >= 7)
{
test.submit.disabled = false;
}
else
{
test.submit.disabled = true;
}
}
</script>
</head>
<body>
<form method="GET" action="test.html" name="test">
<input type="text" name="user" onkeyup="checkpass()">
<input type="submit" name="submit" disabled>
<input type="button" name="clearuser" onclick="test.user.value = '';" value="Ryd user">
</form>
</body>
</html>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GED d- s: a--- C++ U? P L+ E? W++ N? o? K- w
O? M? V? PS PE? Y? PGP++ t 5? X+ R tv+ b+ DI? D+
G e-- h! !r y--
------END GEEK CODE BLOCK------
Failure is not an option, it\\'s included with the software. - Murphys Law