TOC PREV NEXT INDEX

domref



detach


Releases Range from use to improve performance.

Syntax

range.detach();
 

Parameters

None.

Example

range = document.createRange();
 
range.selectNode(
  document.getElementsByTagName("div").item(0));
 
range.detach();
 

Notes

Allows mozilla to relinquish resources associated with this Range. Subsequent attempts to use the detached range will result in a DOMException being thrown with an error code of INVALID_STATE_ERR.

Specification

detach


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX