ResizeObserver.disconnect()
The disconnect()
method of the ResizeObserver
interface unobserves all observed Element
or SVGElement
targets.
Syntax
resizeObserver.disconnect();
Parameters
None.
Return value
Void.
Exceptions
None.
Examples
btn.addEventListener('click', () => { resizeObserver.disconnect(); })
Specifications
Specification |
---|
Resize Observer # dom-resizeobserver-disconnect |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
disconnect |
64 |
79 |
69 |
No |
51 |
13.1 |
64 |
64 |
79 |
47 |
13.4 |
9.0 |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver/disconnect