IntersectionObserver: disconnect() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("Intersection Observer API")}}
The **disconnect()** method of the {{domxref("IntersectionObserver")}} interface stops the observer watching all of its target elements for visibility changes.
Syntax
js-nolint
disconnect()Parameters
None.
Return value
None ({{jsxref("undefined")}}).
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{domxref("IntersectionObserver.observe", "observe()")}}
- {{domxref("IntersectionObserver.unobserve", "unobserve()")}}