Programmer's Guide > Interfaces > W3C Range interface > detach method
  
detach method
Called to indicate that the Range is no longer in use and that the implementation may relinquish any resources associated with this Range. Subsequent calls to any methods or attribute getters on this Range will result in a DOMException being thrown with an error code of INVALID_STATE_ERR.
detach()
Parameters
None
Returns
void
Throws
DOMException
INVALID_STATE_ERR: Raised if detach() has already been invoked on this object.