Forum Moderators: open
In reality, Netscape Navigator seems to treat the input type="password" as a second input type="text" area, so this default doesn't work. You need to use javascript to do this. Something like:
<html> function checkEnter(event) if (NS4) { <body>
<head>
<title>Untitled</title>
<script type="text/javascript">
NS4 = (document.layers) ? true : false;
{
var code = 0;
code = event.which;
}
else {
code = event.keyCode;
}
if (code==13) {
document.monkeyform.submit();
}
}
</script>
</head>
<form action="" name="monkeyform" id="monkeyform">
<input type="text" name="monkeyText" id="monkeyText" onkeypress="checkEnter(event)" />
<input type="password" name="monkeyPass" id="monkeyPass" onkeypress="checkEnter(event)" />
<input type="submit" name="monkeySubmit" id="monkeySubmit" />
</form>
</body>
</html>
Not incredibly elegant, but it seems to work. A javascript guru could probably give you a better solution.