Link to home
Start Free TrialLog in
Avatar of varmerjv
varmerjv

asked on

Passwords in FrontPage 2000

I have created a webpage using FP2000. There are some locations on the webpage that require a password access. My question is? How do i asign passwords using FP2000 for my webpage?
ASKER CERTIFIED SOLUTION
Avatar of rhariz
rhariz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vakusuma
vakusuma

Hi. I've checked out http://javascriptsource.com for a password script and this is what I came out with:
First, copy the following parts to the HEAD:

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function password() {
var testV = 1;
var pass1 = prompt('Please Enter Your Password','');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1 == "the password") {
alert('You Got it Right!');

//OK, then you should change the following URL to your protected filename:

window.open('protectedpage.html');
break;
}
testV+=1;
var pass1 =
prompt('Access Denied - Password Incorrect, Please Try Again.','Password');
}
if (pass1!="password" & testV ==3)              
history.go(-1);
return " ";
}
// End -->
</SCRIPT>
</head>

You should enter this (or similar kind of script) at the PREVIOUS page...
<CENTER>
<FORM>
<input type="button" value="Enter Password Protected Area" onClick="password()">
</FORM>
</CENTER>

Please acknowledge Javascriptsource by also entering this tags somewhere:
<p><center>
<font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>