title: redirect user to another html page if the condition is true
body: <p>First of all, I just want to say that I'm not good with html, all i know about html is from what i learn online by myself.</p>
  
  <p>So.. I have a project and part of it is making a website. I already made the website but i have a problem..</p>
  
  <p>My problem is I don't want to let the user access the setting, I want the admin to only access the setting, I did that by putting a password in setting page.. so if the user clicks on the setting icon, it will ask for a password, if its correct then the user can go to setting page</p>
  
  <p>I have 3 pages (index.html which is my home page),(manager.html where my setting code is in) and (index4 where this code is in)
  in index.html there a code which let the user go to index4.html page
  and in index4.html page is this code</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  
  &lt;body&gt;
  
      &lt;script&gt;
          var pass;
          pass = prompt("please enter the password to access");
          if (pass == "11111"){
              &lt;a href="manager.html"&gt;This is the link.&lt;/a&gt;        
          } else {
              document.write("The password you've is enter is incorrect");
          }
  &lt;/script&gt;
  
  &lt;body&gt;  
  
  &lt;/html&gt;
  </code></pre>
  
  <p>From what I learn online, href="link" code can redirect to another page.. but it seems I can't use it if it's in 'if statement'.
  when I did inspect element,I got this error "Unexpected token '&lt;'"</p>
  
  <p>Can someone please tell me how to correct my mistake.</p>