Advertisement
powylv

password protection

Jun 4th, 2022 (edited)
726
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <!-- demo: https://liveweave.com/gu0ReI -->
  2.  
  3. <script>
  4. var password;
  5. var pass1="your password here";
  6. password=prompt("enter your password to view this page.","");
  7. if (password==pass1)
  8. alert('password correct! click ok to enter.');
  9. else
  10. {
  11. window.location="u can put any link u want the page to get redirected to here";
  12. }
  13. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement