You had not ended your <title> tags properly and you had not added the first <form> tag, it should read:
Code:
<html>
<head>
<title>PASSWORD ENTRY"</title>
</head>
<SCRIPT LANGUAGE="JAVASCRIPT">
function displayPassword()[
alert(\nname is ---"> +
docment.entryForm.secret.name +
"\nvalue is --->" +
docment.entryForm.secret.name +
"\ndefaultValue is ---"> +
docment.entryForm.secret.defaultValue)
}
</script>
<body>
<br>
<b>password here</b>
<br><br>
<form>
<INPUT TYPE="password" NAME="secret" SIZE="15"
VALUE="bofus">
<INPUT TYPE="button" NAME="passwordViewer"
VALUE="Push To View" onClick="displayPassword()">
</form>
</body>
</html>
Try that. I got a Javascript error, so something is wrong with your Javascript.