Home } Password Protection } Password Prompt (In)



If a visitor wants to go the the password protected page (this page), they must first enter the correct password on the previous page. (Note: The password is the protected filename without the .html ending.) A very good script if JavaScript is enabled. As an added bonus, it's only 8 lines!

The JavaScript Source: Password Protection: Password Prompt

Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!

    

Did you use this script?  Do you like this site?  Please link to us!

Sign up for the JavaScript Weekly

internet.com Privacy Policy
We'll send this script to you!

(just click "Send it!" once!)