DebateFort - Where Warriors Come To Debate
RAGECRY - Funny, Amusing, Interesting, Trending & Viral Videos and Images
GameOrc - Free Flash Games Online
Results 1 to 12 of 12
  1. #1
    Newbie jeremywilms's Avatar
    Join Date
    May 2006
    Location
    CARDBOARD BOX
    Posts
    74
    Reputation
    10
    Thanks
    0

    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?????

  2. #2
    MPGH Historian
    Super User
    iverson954360's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Location
    Washington
    Posts
    10,205
    Reputation
    875
    Thanks
    1,456
    My Mood
    Dead
    u forgot to put a > after "JAVASCRIPT"

  3. #3
    Threadstarter
    Newbie
    jeremywilms's Avatar
    Join Date
    May 2006
    Location
    CARDBOARD BOX
    Posts
    74
    Reputation
    10
    Thanks
    0

    ...

    lol thx!!!!!!!!!!!!!!!

  4. #4
    Threadstarter
    Newbie
    jeremywilms's Avatar
    Join Date
    May 2006
    Location
    CARDBOARD BOX
    Posts
    74
    Reputation
    10
    Thanks
    0
    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>

  5. #5
    MPGH Historian
    Super User
    iverson954360's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Location
    Washington
    Posts
    10,205
    Reputation
    875
    Thanks
    1,456
    My Mood
    Dead
    so did it work? hmm havent worked with html and java in like over year and a half so im kinda rusty

  6. #6
    Threadstarter
    Newbie
    jeremywilms's Avatar
    Join Date
    May 2006
    Location
    CARDBOARD BOX
    Posts
    74
    Reputation
    10
    Thanks
    0
    its ok thx for trying enyway

  7. #7
    Banned
    BANNED!
    Jackal's Avatar
    Join Date
    Feb 2006
    Location
    The Rooftops
    Posts
    1,097
    Reputation
    14
    Thanks
    56
    Im no HTML whiz, but aren't you missing a < infront of "html>" ?

  8. #8
    MPGH Historian
    Super User
    iverson954360's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Location
    Washington
    Posts
    10,205
    Reputation
    875
    Thanks
    1,456
    My Mood
    Dead
    try a cap r in entry man i need to get sum html books this summer

    yea and wur jackal said

  9. #9
    Threadstarter
    Newbie
    jeremywilms's Avatar
    Join Date
    May 2006
    Location
    CARDBOARD BOX
    Posts
    74
    Reputation
    10
    Thanks
    0
    the <html> doesnt realy matter well it does sometimes but not in this case.

  10. #10
    Banned
    BANNED!
    Jackal's Avatar
    Join Date
    Feb 2006
    Location
    The Rooftops
    Posts
    1,097
    Reputation
    14
    Thanks
    56
    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.

  11. #11
    I AM THE LAW
    Head Administrator
    Dave84311's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    The Wild Wild West
    Posts
    22,577
    Reputation
    1738
    Thanks
    30,704
    My Mood
    Devilish
    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 YOUR 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.” - Dave84311HAD VIRTUAL DETOX

  12. The Following User Says Thank You to Dave84311 For This Useful Post:

    Raupi (01-29-2013)

  13. #12
    Blackhat Hacker
    MPGH Member
    Bull3t's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Location
    England
    Posts
    1,527
    Reputation
    5
    Thanks
    144
    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.





Similar Threads

  1. [TuT] Java script tutorial
    By rob7601 in forum Web Languages
    Replies: 4
    Last Post: 01-16-2011, 04:16 PM
  2. Java script hack
    By iwanthacks121 in forum Java
    Replies: 35
    Last Post: 08-21-2010, 11:06 AM
  3. Java script CC generater
    By cruizrisner in forum Other Programming
    Replies: 0
    Last Post: 07-02-2010, 03:21 PM
  4. java script box hack
    By undergroundhack in forum Java
    Replies: 7
    Last Post: 06-02-2009, 12:18 PM
  5. Replies: 1
    Last Post: 07-05-2006, 06:20 AM