title: Js, document.getElementById("ID").innerHTML, error
body: <p>Hello I'm new to javascript, and I'm try to write out some code for a test site and I'm having some problems, dow below is my code and I keep getting this error and i can't figure out why.</p>
  
  <p><code>TypeError: null is not an object (evaluating 'document.getElementById("h3").innerHTML = "&lt;h3&gt;You Are up to date!&lt;/h3&gt;"')</code></p>
  
  <p>This is my second method i tried using. what I'm trying to do it have a  have a version list this first one i had was that it would pull a .js file and build a table, but that didn't work so i thought i would try this, but guess what happened? not working</p>
  
  <p>my code that I'm using now is below. if you can help that would be amazing. 
  thanks, Dakmessier</p>
  
  <pre><code>var current = "1.0";
  function get_latest(){
  document.getElementById("bob").innerHTML = current;
  }
  
  if (local != current){
  document.getElementById("Get").innerHTML = "&lt;button&gt;&lt;a href=\"bla\"&gt;Get the Latest Update!&lt;/a&gt;&lt;/button&gt;";
  } else if (local == current){
   document.getElementById("h3").innerHTML = "&lt;h3&gt;You Are up to date!&lt;/h3&gt;";
  } else {
  document.getElementById("h3").innerHTML = "&lt;h3&gt;Sorry, unable to check for update.&lt;/h3&gt;";
  }
  </code></pre>