title: Hide element on window resize
body: <p>I've attempted to build a table that appears when the window is a certain size. Now I want to work it to be more responsive by making the table hidden once a window reaches a certain size. I've seen window.onresize(), but I'm not sure how to implement it with the following code.</p>
  
  <pre><code> if (iedom||document.layers){
      with (document){
          document.write('&lt;table style="display:block" border="0" cellspacing="0" cellpadding="0"&gt;&lt;td&gt;')
          document.write('&lt;/td&gt;&lt;/table&gt;')
      }
   }
  </code></pre>