title: Uncaught TypeError: links is not a function at HTMLButtonElement.onclick
body: <p>This is a <strong>very strange</strong> error. HTML thinks the function is undefined, how do I solve this? Here's the code:</p>
  
  <pre><code>&lt;button id="links" onclick="links()"&gt;Links&lt;/button&gt;
      &lt;script&gt;function links(){document.location = ("links.html")}&lt;/script&gt;
  </code></pre>