DHTML Methods
Removes the object from the document hierarchy.
object.removeNode ( true | false )
false |
Optional. The childNodes collection of the object is not removed. |
true |
Optional. The childNodes collection of the object is removed. |
No return value.
The following sample demonstrates the use of the removeNode method to remove a table from the document hierarchy.
<script language="JavaScript">
function fnRemove ( ) {
oTable.removeNode ( true );
}
</script>
<table id = oTable>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</table>
<input type = button value = "Remove Table"
onclick = "fnRemove ( )">
appendChild, cloneNode, insertBefore