<div id="algo"> <table>
obj = document.getElementById('algo'); obj.removeChild(obj.getElementsByTagName('table')[0]);