Skip to main content


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:

The second step is to find a web page that will be gone to if the visitor types in the wrong password.
I chose:
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">
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!');

Create Easy Password Protect login Form

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

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