L
Legolas
I have a code for a password, but no matter what I say the allowed password
should be it says ut is incorrect. I am using FP 2003, and the code I am
using is this:
<HEAD>
<script type="text/javascript">
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Javascript Newbie :: http://expage.com/javascriptnewbie
*/
var password;
var pass1 = "password"; // place password here
password=prompt("Please enter your password:","");
if (password==pass1) {
window.location= "test2.html"; // file to open if password is correct
} else {
window.location= "test.html"; // file to load if password is incorrect
}
// End -->
</script>
<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>
<!-- Script Size: 0.81 KB -->
Please tell me what the problem is!
should be it says ut is incorrect. I am using FP 2003, and the code I am
using is this:
<HEAD>
<script type="text/javascript">
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Javascript Newbie :: http://expage.com/javascriptnewbie
*/
var password;
var pass1 = "password"; // place password here
password=prompt("Please enter your password:","");
if (password==pass1) {
window.location= "test2.html"; // file to open if password is correct
} else {
window.location= "test.html"; // file to load if password is incorrect
}
// End -->
</script>
<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>
<!-- Script Size: 0.81 KB -->
Please tell me what the problem is!