title: Delete the entire table rendered from different pages using Javascript
body: <p>I am having a table  like:</p>
  
  <pre><code> &lt;table id="toc" class="toc" border="1" summary="Contents"&gt;
   &lt;/table&gt;
  </code></pre>
  
  <p>in many pages .. All these pages are rendered in a single page.
  when I apply the Javascript to delete that using on load. Only one table is deleted and not the others.</p>
  
  <p>I am trying to delete the  tables in all the rendering pages using Javascript. How to do this?</p>
  
  <p>Edit :<br>
  I myself found the solution</p>
  
  <pre><code> &lt;script type='text/javascript'&gt;
      window.onLoad = load(); 
    function load(){var tbl = document.getElementById('toc'); 
     if(tbl) tbl.parentNode.removeChild(tbl);} 
   &lt;/script&gt; 
  </code></pre>