Javascript passwords

Need help with pass...

Page 1 of 1

1 Replies - 1121 Views - Last Post: 07 November 2009 - 07:37 PM

#1 kirbyfan101   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 62
  • Joined: 30-April 09

Javascript passwords

Posted 07 November 2009 - 03:15 PM

OK I Need to create a web page that in it you have to sighn in to see certian content and so far i only have Theis HTML code:
<form action="" method="post">
<p style="font-family:Curlz mt;Color:Blue">Radio Button<input type="radio" name="Radio Button" value="radio button" >
<br></br><p style="font-family:Curlz mt;Color:Blue">Checkbox<input type="checkbox" value="checkbox">
<br></br><p style="font-family:Curlz mt;Color:Blue">Text: <input type="text"  value="text goes here">
<br></br><p style="font-family:Curlz mt;Color:Blue">Password: <input type="password" Name="password"> 
<br></br><p style="font-family:Curlz mt;Color:Blue">Button: <input type="button" value="button" name="button">
<br></br><p style="font-family:Chiller;Color:Blue">Submit button: 
<a name="link1">

And Here is my Javascript code (It's not done yet i need help with that):
<script tpye="text/javascript">
function Pass()
var x ="Idk"

Here is a screenshot (i hope):


Is This A Good Question/Topic? 0
  • +

Replies To: Javascript passwords

#2 JMRKER   User is offline

  • D.I.C Addict
  • member icon

Reputation: 134
  • View blog
  • Posts: 868
  • Joined: 25-October 08

Re: Javascript passwords

Posted 07 November 2009 - 07:37 PM

Why create a JS function when an HTML is already available?
name: <INPUT TYPE=TEXT NAME="realname"><BR>
password: <INPUT TYPE=PASSWORD NAME="mypassword">

If you still want to use JS, take a look at:

Note, neither way is very secure.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1