Metachecker.net
|
FontsMadeEasy.com
|
RankChecker.net
Learn Java Script Today
|
Over 5000 Free Fonts
|
Tutorials
|
Javascript Forum
|
Other Javascript Resources
|
Cheat Sheet
JavaScript Basics
Inserting Javascript
Complete Tutorial
Advance DHTML Tutorial
Script archive
Advanced Tutorials
Alert Scripts
Animation
Audio
Background Effects
Banner Ads
Browser Window
Buttons
Button Forms
Calculcators
Calendars
Clocks & Dates
Cookies
Cursor Effects
DHMTL Games
DHTML Miscellaneous
Equivalents
Forms
Games
IE4+ Scripts
IE5+ Scripts
Image Effects
Image Miscellaneous
Links & Buttons
Math Related
Messages Miscellaneous
Miscellaneous
Mouse Tricks
Navigation
Page Details
Password Protection
Pulldown Menus
Random Stuff
Scrolling
Status Bar
Text Animation
User Detail
User Info
Window Control
Three Tries
If you want to 'protect' a site and don't have CGI access, you can try this JavaScript. Visitors get three tries to enter the correct password then they are refused entry. Note: The password is: password
Insert into <HEAD>
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin function password() { var testV = 1; var pass1 = prompt('Please Enter Your Password',''); while (testV < 3) { if (!pass1) history.go(-1); if (pass1 == "password") { alert('You Got it Right!'); <!-- STEP TWO: Change protectedpage.html to your protected page --> // Change the following URL to your protected filename window.open('protectedpage.html'); break; } testV+=1; var pass1 = prompt('Access Denied - Password Incorrect, Please Try Again.','Password'); } if (pass1!="password" & testV ==3) history.go(-1); return " "; } // End --> </SCRIPT> </head>
Insert into <BODY>
<CENTER> <FORM> <input type="button" value="Enter Password Protected Area" onClick="password()"> </FORM> </CENTER>
Other Options