PC Review


Reply
Thread Tools Rate Thread

Change of script for password protect file

 
 
Shona
Guest
Posts: n/a
 
      7th Aug 2003
Hi

Hi

I have this script but when the person puts in the correct password it comes
up with correct password and they have to click OK does anyone know which
part of this do I remove to save them having to do this

var Pw = document.pass.protect.value
if (Pw=="null")
{pass_protect=0}
else
{
i = 0
while (i < 3)
{
switch(Pw){
case passwords[i] :
alert("Correct Pass")
window.location="http://www.file.asp" ;
//Change the html file above
pass_protect = 1
//Change the html file above
break ;
}
i = i + 1
}
}
if (pass_protect==0)
{
alert("Incorrect Pass")
window.location="http://www/Index.htm"}
//Change the html file above
}

Thanks Shona


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: which is right, protect password:="xyz" or protect password = "xyz Ryan H Microsoft Excel Programming 0 13th Jan 2010 08:22 PM
password protect a mail folder in outlook to protect from hackers congoes girl Microsoft Outlook Discussion 2 21st Dec 2007 10:01 AM
Password protect content editing vs. password protect open document ?? Camille Petersen Microsoft Word Document Management 1 3rd May 2006 01:25 PM
Password protect content editing vs. password protect open document ?? Camille Petersen Microsoft Word New Users 1 3rd May 2006 01:25 PM
Can't password protect workbook -- no pw protect box on Tools>Opts =?Utf-8?B?TVM=?= Microsoft Excel Discussion 2 16th Jul 2005 03:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:41 AM.