title: How do I link a JavaScript Program in HTML, and Get It To Run?
body: <p>Please be patient throughout this, I am VERY bad at coding both JavaScript and HTML, and this problem is probably trivial to anyone who knows anything.</p>
  
  <p>For a school project, I have to create a website with a JavaScript, interactive feature. I'm planning on making a button that subsequently, when pressed, prompts the user many questions, such as "Do you have an account?", "Username?", and "Password". I believe my JavaScript is written correctly, but when I link it in my HTML, and when I press the button that is intended to start this prompting, nothing happens. What am I doing wrong?</p>
  
  <p>Here are segments of both my HTML and JavaScript code that I am using.</p>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>function LogIn(){
  var Account = prompt("Do you have an account?")
  
  if (Account = "yes"){
      var Username = prompt("Username");
      if (Username = "MarkColley"){
          var Password = prompt("Password");
  </code></pre>
  
  <p>...</p>
  
  <pre><code>else{
      confirm("That keyword is not acceptable. Try 'yes' or 'no' instead.");
  }
  document.getElementById("demo").innerHTML = text;
  }
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;li&gt;&lt;a href="CurrentShows.html"&gt;Current Shows&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;img src="https://cdn4.iconfinder.com/data/icons/man-and-woman/154/man-human-person-login-512.png" style="width:20px;height:20px;"&gt;&lt;button onclick="Login()"&gt;Sign Up/Log In&lt;/button&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;script type="text/javascript" src="LogInSignUp.js"&gt;&lt;/script&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>If it helps at all, here is an image of what the button/area that I am trying to get to work looks like.</p>
  
  <p><a href="http://i.stack.imgur.com/BpMF6.png" rel="nofollow">An image of my unworking, useless button.</a></p>