detach method (Range)
Releases the current Range object and allows the browser to free up resources.
Note: The Range object and its detach method are supported in Internet Explorer from version 9.Detached Range objects cannot be used later. When you work several Range objects simultaneously, the use of the detach method is preferred to improve performance.
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 shows how to detach a Range after it is not needed any more:
Did you find this example helpful?
User Contributed Comments