I want to create my own site, but I did not knwo about java. Could anyone tell how can I create a password code for my website. Pls give complete code. Thanks in advance!
which type password you want to create. I want to tell you that javascript password is not secure becouse javascript is client side script.
<HEAD> <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="any other location"; } //--> </SCRIPT> </HEAD> Code (markup):