Password

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top