u forgot to put a > after "JAVASCRIPT"
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?????
u forgot to put a > after "JAVASCRIPT"
Hip Hop thread Part 1 (No Longer Updated): https://www.mpgh.net/forum/316-music-...-hop-list.html
Part 2 (No Longer Updated): https://www.mpgh.net/forum/2-general/...ad-pt-2-a.html
Part 3: COMING SOON
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
Hip Hop thread Part 1 (No Longer Updated): https://www.mpgh.net/forum/316-music-...-hop-list.html
Part 2 (No Longer Updated): https://www.mpgh.net/forum/2-general/...ad-pt-2-a.html
Part 3: COMING SOON
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
Hip Hop thread Part 1 (No Longer Updated): https://www.mpgh.net/forum/316-music-...-hop-list.html
Part 2 (No Longer Updated): https://www.mpgh.net/forum/2-general/...ad-pt-2-a.html
Part 3: COMING SOON
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()">
THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE
"First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311
HAVING VIRTUAL DETOX
Drugticker (01-29-2013)
You had not ended your <title> tags properly and you had not added the first <form> tag, it should read:
Try that. I got a Javascript error, so something is wrong with your Javascript.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>