Mortgages | Mortgage Calculator | Investing | Remortgages | Remortgage
Javascript :WIN98 [Archive] - PCMech Forums

PDA

View Full Version : Javascript :WIN98


kokleong95
10-09-2000, 06:33 AM
I got this tip from Lockergnome.com However, the code cannot work. Please Help.

Right-click on empty space in a folder and select CUSTOMIZE THIS FOLDER, then choose CREATE HTML DOCUMENT FOR THIS FOLDER. Once the document is opened in Notepad, scroll down until you see <script language="JavaScript"> -- hit [ENTER] to insert a blank line after this string. Now, insert the following text (with hard carriage returns where noted): var pass = prompt("Enter the password") [ENTER] if(pass != "YOURPASSWORD") [ENTER] {window.location="C:"} [ENTER]. Put a password in the place of YOURPASSWORD but leave the quotes. Save the document, exit Notepad, refresh the folder (hit F5), enter your new password, and the next time you try to enter that folder, you'll be prompted for your password.