So everytime I clicked a folder to go in and view its contents, the password script would reapper again, asking me to place the password in once more.
Could someone help me modify this code in order to only have it popup once per visit? I have this java popunder script for my music that uses this cookie sort of method so it doesn't keep popping up after each refresh.
Here's the basic code:
Expand|Select|Wrap|Line Numbers
- <SCRIPT language="JavaScript">
- <!--hide
- var password;
- var pass1="yourpasshere";
- password=prompt('Only those who have been granted the password may enter this page..',' ');
- if (password==pass1)
- alert('Password Correct! Click OK to proceed!');
- else
- {
- window.location="sorry!";
- }
- //-->
- </SCRIPT>
-Thanks!