javascript Node swapNode( )
| swapNode( ) | NN n/a IE 5(Win) DOM n/a |
swapNode(otherNodeObject) | |
|
Exchanges the current node (in the document tree) with a different node passed as a parameter. The other node object can be created anew, or it can be a reference to a node elsewhere in the document tree. In the latter case, the result is the same as a bi-directional exchange, where the two nodes essentially change places. If the two nodes are of different node types or element display types (e.g., an inline versus a block-level element), the rendering of the document may be affected significantly. |
|
| Parameters | |
|
|
| Returned Value | |
Reference to the node from which the method is invoked (i.e., the current node). |
|
Previous: javascript NodeFilter Description
1337,Nickname,Homepage or email,Comments here,Add comment
