How to set Password Lock For Certain Post
This step will helps you to protect some important posts in your blog. In order to enable this you need to follow some steps.
Steps to Follow
This step will helps you to protect some important posts in your blog. In order to enable this you need to follow some steps.
Steps to Follow
<script type="text/javascript">
var password;
var pass1 = "PASSWORD";
password=prompt("Please enter your password to veiw this page!:","");
if (password==pass1) {
window.location= "LINK TO BE OPEN IF PASSWORD IS CORRECT";
} else {
window.location= "LINK TO BE OPEN IF PASSWORD IS NOT CORRECT";
}
</script>
var password;
var pass1 = "PASSWORD";
password=prompt("Please enter your password to veiw this page!:","");
if (password==pass1) {
window.location= "LINK TO BE OPEN IF PASSWORD IS CORRECT";
} else {
window.location= "LINK TO BE OPEN IF PASSWORD IS NOT CORRECT";
}
</script>
Change the red colored lines according to your need.
hi, i've tried that but the top part of the post is still visible, any idea how to make the post completely hidden before the correct password in inserted?
ReplyDeleteBTW : great post =)
you can email the solution to my email address : lam_xiujing@yahoo.com
ReplyDelete