OMG I SO STUCK!!!(Java Script "n" html problem

Posts 1–12 of 12 · Page 1 of 1
OMG I SO STUCK!!!(Java Script "n" html problem
im makeing a java wepage and i wana put a password block on it but i put in the right code and all that stuff and i get a blank page, so i whent to my JavaScript for dummies book and searched and it told me to put in thease codes in

<html>
<head>
<title>PASSWORD ENTrY">
d
<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>
</head>
<body>
<Br>
<B>password here
</B>

<BR><BR>
<INPUT TYPE="password" NAME="secret" SIZE="15"
VALUE="bofus">
<INPUT TYPE="button" NAME="passwordViewer"
VALU="Push To View" onClick="displayPassword()">
</form>
</body>
</html>



I still get a blank page can enyone see eny problems?????
...
lol thx!!!!!!!!!!!!!!!
Crap! it still dosnt work now i have

html>
<head>
<title>PASSWORD ENTrY">
d
<html>
<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>
</head>
<body>
<Br>
<FORM NAME="ddd">
</B>

<BR><BR>
<INPUT TYPE="password" NAME="secret" SIZE="15"
VALUE="bosefus">
<INPUT TYPE="button" NAME="passwordViewer"
VALUE="Push To View" onClick="displayPassword()">
</form>
</body>
</html>
so did it work? hmm havent worked with html and java in like over year and a half so im kinda rusty
its ok thx for trying enyway
Im no HTML whiz, but aren't you missing a < infront of "html>" ?
try a cap r in entry man i need to get sum html books this summer

yea and wur jackal said
the <html> doesnt realy matter well it does sometimes but not in this case.
Well, congratulations anyway. You have succeeded in doing to all forum rules what Leatherface did to people. ...and i thought a triple-post was to be frowned upon. A triple thread.... That's legendary.

Wow.
You have a stray </b> tag in there... You should probably remove that.

Oh and

<INPUT TYPE="button" NAME="passwordViewer"
VALUE="Push To View" onClick="displayPassword()">

Should be:

<INPUT TYPE="button" NAME="passwordViewer"
VALUE="Push To View" onClick="javascript:displayPassword()">
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.
Posts 1–12 of 12 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?