removeNode method
[This documentation is preliminary and is subject to change.]
Removes the object from the document hierarchy.
Syntax
object.removeNode(fDeep)Standards information
There are no standards that apply here.
Parameters
- fDeep [in, optional]
-
Type: VARIANT_BOOL
A Boolean that specifies one of the following values.
Return value
Type: ObjectReturns a reference to the object that is removed.Remarks
This property is accessible at run time. If elements are removed at run time, before the closing tag is parsed, areas of the document might not render.
Examples
This example uses the removeNode method to remove a table from the document hierarchy.
<SCRIPT>
function fnRemove(){
// 'true' possible value specifies removal of childNodes also
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
- Attr Constructor
- a
- abbr
- acronym
- address
- applet
- area
- attribute
- article
- aside
- b
- base
- baseFont
- bdo
- bgSound
- big
- blockQuote
- body
- br
- button
- caption
- center
- cite
- code
- col
- colGroup
- comment
- dd
- del
- dfn
- dir
- div
- dl
- documentType
- dt
- em
- embed
- fieldSet
- figcaption
- figure
- font
- footer
- form
- frame
- frameSet
- head
- header
- hgroup
- hn
- hr
- html
- i
- iframe
- img
- input type=button
- input type=checkbox
- input type=file
- input type=hidden
- input type=image
- input type=password
- input type=radio
- input type=reset
- input type=submit
- input type=text
- ins
- kbd
- label
- legend
- li
- link
- listing
- map
- mark
- marquee
- menu
- nav
- nextID
- object
- ol
- option
- p
- plainText
- pre
- ProcessingInstruction
- q
- s
- samp
- script
- section
- select
- small
- span
- strike
- strong
- sub
- sup
- table
- tBody
- td
- textArea
- tFoot
- th
- tHead
- title
- tr
- tt
- u
- ul
- var
- xmp
- Element Constructor
- HTMLDocument Constructor
- Text Constructor
- Reference
- appendChild
- cloneNode
- insertBefore
- Conceptual
- About the W3C Document Object Model
Build date: 2/14/2012