• Skip to main content
  • Skip to search
  • Skip to select language
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. IntersectionObserver
  4. IntersectionObserver.disconnect()
  • Change language

Table of contents

  • Syntax
  • Specifications
  • Browser compatibility
  • See also

IntersectionObserver.disconnect()

The IntersectionObserver method disconnect() stops watching all of its target elements for visibility changes.

Syntax

intersectionObserver.disconnect();

Parameters

None.

Return value

undefined.

Specifications

Specification
Intersection Observer
# dom-intersectionobserver-disconnect

Browser compatibility

BCD tables only load in the browser

See also

  • observe()
  • unobserve()

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Sep 14, 2021, by MDN contributors

Change your language

Related Topics

  1. Intersection Observer API
  2. IntersectionObserver
  3. Constructor
    1. IntersectionObserver()
  4. Properties
    1. root
    2. rootMargin
    3. thresholds
  5. Methods
    1. disconnect()
    2. observe()
    3. takeRecords()
    4. unobserve()
  6. Related pages for Intersection Observer API
    1. IntersectionObserverEntry
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2022 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies