filter property (NodeIterator, TreeWalker)
Note: The TreeWalker and NodeIterator objects and their filter properties are supported in Internet Explorer from version 9.You can set this property by the third parameter of the createNodeIterator or createTreeWalker method.
The filter property cannot be used in Firefox for security reasons. See the example for details.
You can find the related objects in the Supported by objects section below.
This property is read-only.
String that specifies the name of the function to filter the nodes.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the filter property:
Did you find this example helpful?
User Contributed Comments