SLiM6y
07-31-2002, 11:27 PM
I have a password script that I use:
<HEAD>
<SCRIPT language="JavaScript">
<!--hide
var password;
var pass1="xxxxx";
var pass2="xxxxx";
password=prompt('Please enter your password to view this page!','');
if (password==pass1 || password==pass2)
alert('Password Correct! Click OK to enter!');
else
{
window.location="http://www.liquid2k.com/mexican-cafe/wrong.html";
}
//-->
</SCRIPT>
Where the xxxx is obviously the passwords. Feel free to use this script by the way, it works quite well....
But.... How do I customise the alert box title that pops up when you go to the page. It says at the moment "Explorer User Prompt" (you can check it out at
http://liquid2k.com/mexican-cafe/members.htm ) In fact even this posting page has the same problem... Can you customise that title bar to read something else.. Like Welcome to the Mexican Cafe.... Anything?
Thanks in advance. I hope that the passwprdscript is of help to you too!
SLiM
<HEAD>
<SCRIPT language="JavaScript">
<!--hide
var password;
var pass1="xxxxx";
var pass2="xxxxx";
password=prompt('Please enter your password to view this page!','');
if (password==pass1 || password==pass2)
alert('Password Correct! Click OK to enter!');
else
{
window.location="http://www.liquid2k.com/mexican-cafe/wrong.html";
}
//-->
</SCRIPT>
Where the xxxx is obviously the passwords. Feel free to use this script by the way, it works quite well....
But.... How do I customise the alert box title that pops up when you go to the page. It says at the moment "Explorer User Prompt" (you can check it out at
http://liquid2k.com/mexican-cafe/members.htm ) In fact even this posting page has the same problem... Can you customise that title bar to read something else.. Like Welcome to the Mexican Cafe.... Anything?
Thanks in advance. I hope that the passwprdscript is of help to you too!
SLiM