I am having a table like:
<table id="toc" class="toc" border="1" summary="Contents">
</table>
in many pages. All these pages are rendered in a single page. When I apply the javascript to delete that using on load with the below:
var tbl = document.getElementById('toc');
if(tbl) tbl.parentNode.removeChild(tbl);
Only one table is deleted and not the others. I am trying to delete the tables in all the rendering pages using javascript. How to do this?
Edit : I myself found the solution window.onLoad = load(); function load(){var tbl = document.getElementById('toc'); if(tbl) tbl.parentNode.removeChild(tbl);}
Thanks for everyone helped..