title: Update window innerheight when resizing window
body: <p>This far i have succeded to make an Id to have same innerHeight as the window.
  However when i resize the window the height stays the same.</p>
  
  <p>Could anyone help me make the Id be the same innerHeight as the window whenever it is resized ?
  Here is the code<br><br></p>
  
  <pre><code>function height()
  {
  var h = window.innerHeight;
  
  document.getElementById("id").style.height = h+'px'; 
  }
  
  height();
  </code></pre>