currentNode property (TreeWalker)
Sets or retrieves a reference to the node where the pointer of the TreeWalker is currently positioned.
Note: The TreeWalker object and its currentNode property are supported in Internet Explorer from version 9.With the currentNode property you can set the current position of TreeWalker to a particular node.
You can find the related objects in the Supported by objects section below.
This property is read/write.
Reference to the node where the TreeWalker is positioned.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the currentNode property:
Did you find this example helpful?
User Contributed Comments