JavaScript Source Code 3000: Password Protection: Password Prompt (In)
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!
JavaScript Source Code 3000: 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!!!
<!-- ONE STEP TO INSTALL PASSWORD PROMPT:
1. Put the designated coding into the BODY of your login HTML document -->
<!-- STEP ONE: Copy this code into the BODY of your login HTML document -->
<BODY>
<SCRIPT LANGUAGE="JavaScript">
<! >
<! >
<!-- Begin
var password = ''
password=prompt('Please enter your password:','');
if (password != null) {
location.href= password + ".html";
}
// End -->
</SCRIPT>
<!-- Script Size: 0.58 KB -->
Wyszukiwarka
Podobne podstrony:
E in T?atures & nescessityFunctional Origins of Religious Concepts Ontological and Strategic Selection in Evolved MindsYou maybe in love Blue CafeIn the?rnGhost in the Shell 2 0 (2008) [720p,BluRay,x264,DTS ES] THORASteve Fearson Card in CeilingE 22 Of Domine in auxiliumAssembly of outer membrane proteins in bacteria nad mitochondria01 In der Vergangenheit ein geteiltes Land Lehrerkommentarnotatek pl dr in Jaros aw Chmiel, Nauka o materia ?h, Przemiany podczas odpuszczaniain game advertisingIn Vitro Anticancer Activity of Ethanolic Extractwięcej podobnych podstron