| Forums > Tips & Tricks > "what is the code for the password access to blog?" (1 replies)
|
|
|
i have seen many blog that have to type in password to access in the blog??
can anyone tell miie the code??
|
| |
|
| |
|
| |
[script language="JavaScript" type="text/javascript"]
[!--hide
var password;
var pass1="YOURPASSWORDHERE";
password=prompt('Enter your password in order to view this page!',' ');
if (password==pass1)
alert('YAY you got it right! Click OK to enter!');
else
{
window.location="http://google.com/";
}
//--]
[/script]
Edit the bolded words. Change the [square brackets] to the sharp brackets.
|
| Subscribe To This Thread: RSS 2.0 or Atom (?) |
| This thread has been locked, and no new replies can be posted. |