Results 1 to 12 of 12
  1. #1
    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
    iverson954360's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Posts
    10,280
    Reputation
    940
    Thanks
    1,656
    My Mood
    Dead
    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











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

    ...

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

  4. #4
    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
    iverson954360's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Posts
    10,280
    Reputation
    940
    Thanks
    1,656
    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
    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











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

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

  8. #8
    iverson954360's Avatar
    Join Date
    Jan 2006
    Gender
    male
    Posts
    10,280
    Reputation
    940
    Thanks
    1,656
    My Mood
    Dead
    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











  9. #9
    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
    Jackal's Avatar
    Join Date
    Feb 2006
    Location
    The Rooftops
    Posts
    1,096
    Reputation
    14
    Thanks
    135
    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
    Dave84311's Avatar
    Join Date
    Dec 2005
    Gender
    male
    Location
    The Wild Wild West
    Posts
    35,837
    Reputation
    5782
    Thanks
    41,292
    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 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

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

    Drugticker (01-29-2013)

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