First Javascript Project
<p>I just started on my first JavaScript project which is a small script to detect the browser window size, and if it is below 1100px then the div <code>quick</code> will not be shown.</p>

<p>Here is my code:</p>

<pre><code>&lt;Script language="Javascript"&gt;
  function toggle(id) {
    var browserwidth =  window.screen.width;
    if (browserwidth &lt;= 1100) {
      document.getElementByID(quick).style.display = 'none';
    } else {
      document.getElementById(quick).style.display = 'block';
    }
  }
&lt;/script&gt;
</code></pre>

<p>but I cannot figure out for the life of me my it does not work. I am fully aware that css <code>@media</code> could do what I am trying to do but it would not work for the current project I am working on.</p>
