Copy the script below. Make sure it is in Literal HTML Format> Style> Literal HTML
Paste the script on the top of the page to be protected.
<HEAD>
<SCRIPT language="JavaScript">
<!--hide
var password;
var pass1="password";
password=prompt('Please enter your password to view this page!',' ');
if (password==pass1)
alert('Password Correct! Click OK to enter!');
else
{
}
//-->
</SCRIPT>
</HEAD>
|