detach method (NodeIterator)
Releases the current NodeIterator object and puts the iterator into the invalid state.
Note: The NodeIterator object and its detach method are supported in Internet Explorer from version 9.A call to the nextNode or the previousNode methods raises an exception after the detach method has been invoked.
You can find the related objects in the Supported by objects section below.
This method has no return value.
Example HTML code 1:
This example illustrates the use of the the detach method:
Did you find this example helpful?
User Contributed Comments