javascripts
 

SimplytheBest
Scripts

ASP scripts
PERL scripts
PHP scripts
JavaScripts & Ajax
Snippets
Online scripts

Ajax, DHTML
& JavaScripts

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers
Add script
Account login
Publisher list



 

Home > Scripts > DHTML scripts & JavaScripts > Password protection > Password protection script

 

Password protection script

AUTHOR: Schubert(16)
TYPE: Freeware
BROWSERS: IE 4+, IE 5+, IE 6+

A simple password protection script for password protecting an entry way to a page on your site.


EXAMPLE

You should have seen the prompt windows when entering this page.


1)
Insert this script in the <HEAD> section of the page.

then copy (CTRL-C) & paste (CTRL-V)

 

2) Delete the words "Current password is - SimplytheBest" in this section of the script:

pass=prompt("This page is password protected. Enter the password below. Current password is - whatever","");

4) Replace the word "SimplytheBest" with your own password in this section of the script:

if(pass=="SimplytheBest" && pass!=null)

Remember: the password is case sensitive.


[BACK] [TOP]

 


Copyright © 1997-2009 SimplytheBest Inc. Terms of Use and Legal Disclaimer.
All copyrights are acknowledged. All rights reserved.