Inside JavaScript
The swapNode Method
The swapNode method enables you to swap two nodes. You can see the support for this method in Table 6.52. Table 6.52. The swapNode Method
Here's how you would swap two nodes, node1 and node2 : node1.swapNode(node2) | |||||||||||||||||||||||||||||||||