title: Updating a backgroundcolor based on input
body: <p>I have input which contain a hexColor. every time this input is changed i would like to update the background color on a specific div, so far i've added following javascript code, which get this value from the input. What do i need to make it keep updating the background color on the div with the id <code>NavBar</code></p>
  
  <pre><code>var navBar = document.getElementById("navBarColor").value;
  </code></pre>