asp.net.ph

Skip Navigation Links

removeNode Method

DHTML Methods


Removes the object from the document hierarchy.

Syntax

object.removeNode ( true | false ) 
Parameters

false Optional. The childNodes collection of the object is not removed.
true Optional. The childNodes collection of the object is removed.

Return Value

No return value.

Example

The following sample demonstrates the use of the removeNode method to remove a table from the document hierarchy.

Cell 1Cell 2
<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 ( )">
See Also

appendChild, cloneNode, insertBefore



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note