Skip to main content

Posts

Showing posts with the label Password

HTML Javascript Password Tips

Javascript: Password Tips If you want a page to be password protected, look at these html tips and tricks.

The first step is to find a web page that is password protected.
Mine is: http://htmlpassprotect.blogspot.com/

The second step is to find a web page that will be gone to if the visitor types in the wrong password.
I chose: http://learneasywebdesign.blogspot.in/
It may be better, however, to make a page that will say, for example, "YOUR PASSWORD IS INCORRECT. CLICK HERE TO TRY AGAIN. CLICK HERE TO GO BACK."

The third step is to insert the following code in between <head> and </head> on your password protected page:
<SCRIPT language="JavaScript">
<!--hide
var password;
var pass1="cool";
password=prompt('Please enter your password to view this page!',' ');
if (password==pass1)
alert('Password Correct! Click OK to enter!');
else
{
window.location="http://learneasywebdesign.blogspot.in";

Create Easy Password Protect login Form

Create Easy and simple Password Protect login Form in your website. 
Project Code:

<html>
<head>
<title>Example of Password
</title>
</head>
<body>
<h2>Project of Password
</h2>
<form>
Please Enter Your Password to Log on:
<input type="password" name="log on"size="25"maxlength="25">
</form>
</body>
</html>
Output Figure