Firefox Tomorrow

web api instance method

ResizeObserver: disconnect() method

View on MDN ↗

The disconnect() method of the ResizeObserver interface unobserves all observed Element or SVGElement targets.

Syntax

disconnect()

Parameters

None.

Return value

None (undefined).

Exceptions

None.

Examples

btn.addEventListener("click", () => {
  resizeObserver.disconnect();
});

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.