codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || RAM 
Search Site:



Home » Javascript » Article

Javascript Scripted Password Entry Login

Article by: Drew Bowman (1/6/2003)
Bookmark us now! Add to Favourites
Email a friend! Tell a friend
Summary: Create a password protected page using this neat javascript prompt.
Viewed: 179821 times Rating (107 votes): 
 3.9 out of 5
  Rate this Article   Read Comments   Post Comments

Javascript Scripted Password Entry Login

Live Demo

This javascript provides a way for internet users to login to a "secure page". This is achieved by sending a user to a filename based upon their username and password. If an incorrect username or password is entered the page is not loaded that sends the user to the "secure page".
Code
  • This is the code that should be placed on the initial webpage that you would like your users to login from:
  •