Inside JavaScript

The replaceNode Method

The replaceNode method replaces one node with another. You can see the support for this method in Table 6.45.

Table 6.45. The replaceNode Method

Method

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

replaceNode( node )

             

x

x

x

 

Returns: Node object

To use this method on a node, you just pass the new node you want to replace that node with.

Категории