HTMLIframeElement.removeNextPaintListener()

Warning: Removed in Firefox 65.

The removeNextPaintListener() method of the HTMLIFrameElement interface is used to remove a handler previously set with the addNextPaintListener method.

Syntax

instanceOfHTMLIframeElement.removeNextPaintListener(listener);

Returns

Void.

Parameters

listener
A function handler previously set with addNextPaintListener.

Examples

var browser = document.querySelector('iframe');

function onNextPaint() {
  console.log("Paint has occured");
}

browser.addNextPaintListener(onNextPaint);

browser.removeNextPaintListener(onNextPaint);

Specification

Not part of any specification.

Browser compatibility

Supported since Firefox 47, in chrome code only. Removed completely in Firefox 65.

Unlikely ever to be supported in other browsers.

See also

Document Tags and Contributors

Contributors to this page: chrisdavidmills, sideshowbarker, fscholz, teoli, kscarfone, Jeremie
Last updated by: chrisdavidmills,