title: Javascript .innerHTML won't work
body: <p>I ran into some problems this morning with a piece of JavaScript code, i can't seem to get the .innerHTML thing to work, this is what i've wrote:</p>
  
  <pre><code>&lt;script&gt;
      var curtime = new Date(),
      curday = curtime.getDate(),
      curmonth = curtime.getMonth()+1;
  
      if(curmonth == 10 &amp;&amp; curday == 14)
          document.getElementById(titel).innerHTML = "nieuw";
  
  &lt;/script&gt;
  </code></pre>
  
  <p>it's in the <code>&lt;head&gt;</code> tag. Somewhere in the <code>&lt;body&gt;</code> i have this:</p>
  
  <pre><code>&lt;div class="navbar-header"&gt;
    &lt;a class="navbar-brand" href="/rushter/"&gt;&lt;i class="fa fa-calendar"&gt;&lt;/i&gt;&lt;p style="display: inline;" id="titel"&gt; Rushter&lt;/p&gt;&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>why doesn't this work? the javascript does work when i replace the document.getElement... part with a simple alert.</p>
  
  <p>ps. yes i'm a javascript noob</p>