Site password set pest kro Head ke uper

<script>
(function () {

  var correctPassword = &quot;1234&quot;; // 👈 apna password yahan likho

  function askPassword() {
    var userPass = prompt(&quot;Enter Password to Open Site:&quot;);

    // Agar user Cancel kare
    if (userPass === null) {
      askPassword();
      return;
    }

    // Agar password galat ho
    if (userPass !== correctPassword) {
      alert(&quot;Wrong Password! Try Again.&quot;);
      askPassword(); // 🔁 Retry option
    }
  }

  // Page load par password pucho
  askPassword();

})();
</script>

Comments

Popular posts from this blog

✅ HTML Code: VBA Case Conversion Macros for MS Word & Excel