JavaScript Reference/Javascript Methods/removeNode
"removeNode()" Example
<html>
<body>
<script language="JavaScript">
function function1() {
document.all.myButton.removeNode(true);
}
</script>
<button id="myButton" onclick="function1();">Remove me</button>
</body>
</html>
"removeNode()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <acronym> |
| |<address> <b> |
| |<bdo> <big> |
| |<blockquote> <body> |
| |<button> <caption> |
| |<center> <cite> |
| |<code> <col> |
| |<colgroup> <comment> |
| |<dd> <del> |
| |<dfn> <dir> |
| |<div> <dl> |
| |<dt> <em> |
| |<fieldset> <font> |
| |<form> <frameset> |
| |<head> <hn> |
| |<html> <i> |
| |<iframe> <input type="button"> |
| |<input type="checkbox"> <input type="file"> |
| |<input type="image"> <input type="password"> |
| |<input type="radio"> <input type="reset"> |
| |<input type="submit"> <input type="text"> |
| |<ins> <kbd> |
| |<label> <legend> |
| |<li> <listing> |
| |<map> <marquee> |
| |<menu> <object> |
| |<ol> <option> |
| |<p> <plaintext> |
| |<pre> <q> |
| |<s> <samp> |
| |<select> <small> |
| |<span> <strike> |
| |<strong> <style> |
| |<sub> <sup> |
| |<table> <tbody> |
| |<td> <textarea> |
| |<tfoot> <th> |
| |<thead> <tr> |
| |<tt> <u> |
| |<ul> <var> |
| |<xmp> |
+----------------+--------------------------------------------------------------+
"removeNode()" Syntax, Parameters and Note
Note:
This method removes the specified node from the document"s hierarchy.
Syntax:
document.all.elementID.removeNode(param1)
Parameters:
param1 Required; true or false, indicating whether or not to
remove the child nodes of the node marked for removal.