JavaScript Reference/Javascript Methods/removeNode

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"removeNode()" Example

   <source lang="javascript">
   

<html> <body> <script language="JavaScript">

   function function1() {
       document.all.myButton.removeNode(true);
   }

</script> <button id="myButton" onclick="function1();">Remove me</button> </body> </html>


     </source>
   
  


"removeNode()" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> | | | |

| |
<body> |

| |<button> |

| |
|

| | <col> | | |<colgroup> <comment> | | |

| | | <dir> |

| |
|

| |

| | |<fieldset> | | |<form> <frameset> | | |<head> <hn> | | |<html> | | |<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"> | | | | | |<label> <legend> |

| |
  • <listing> | | |<map> <marquee> | | |<menu> <object> | | |
      <option> | | |

      <plaintext> | | |

                                                            |
      |                |                                                     |
      |                |<select>                                               |
      |                |                                                |
      |                |                        <style>                       |
      |                |                                                    |
      |                |                         <tbody>                       |
      |                |                          |
      |                |                                                       |
      |                |
        | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "removeNode()" Syntax, Parameters and Note

        <source lang="javascript"> 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.


        </source>

      <textarea> | | |<tfoot> | | |<thead>