Heading

Protect Page

Description

JavaScript “Protect page by passowrd” ;[Password needed to Enter ]

Preview

Protected Page

Code

<html>

<head>

<script language=’JavaScript’
type=’text/JavaScript’>

function fifteenth()

{

var sixteenth = 1;

var seventeenth =
prompt(‘Please Enter Your Password’,”);

if (seventeenth != null)

{

while (sixteenth < 3)

{

if (!seventeenth)
history.go(-1);

if (seventeenth.toLowerCase()
== ‘PasswordHere’)

{

alert(‘You Got it
Right!’);

window.open(‘http://yaldex.com&#8217;);

break;

}

sixteenth+=1;

var seventeenth =
prompt(‘Access Denied – Password Incorrect, Please Try Again.’,’Password’);

}

}

if (seventeenth !=null)

{

if (seventeenth.toLowerCase()!=’password’
+ sixteenth ==3) history.go(-1);

return ‘ ‘;

}

}

</script>

<title></title>

</head>

<body>

<center>

<form>

<input type=’button’
value=’Enter Protected Area’ onClick=’fifteenth()’>

</form>

</center>

</body>

</html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s