Add Password to Blogger's Post or any Webpage
Simply Add this Code To your Blogger's Post or Webpage if the person wil Enter Wrong PassWork You Page Will Be reloaded and it will ask one more time.
Here Pass is your password and Harry Potter is default value of the prompt and pass is the Password in this script.
Here Instead of
Focus B
location.reload();
you can also use location.href = "https://google.com/";
to redirect user to website url(Here https://google.com/) if user will insert Wrong Password.You can use this code as simple JavaScript on Bloggers Post or Simple HTML webpage also.
But not use it for more confidential items because and user can view-source and search for the javascript or password.
Focus C
But Here's a Trick if you want to hide the JavaScript Then You can Use https://obfuscator.io/
Then the Javascript will look like this and it will still work same.
Comments