WebIDLpedia

CloseWatcher interface

Definition

HTML Standard defines CloseWatcher



[Exposed=Window]
interface CloseWatcher : EventTarget {
  constructor(optional CloseWatcherOptions options = {});

  undefined requestClose();
  undefined close();
  undefined destroy();

  attribute EventHandler oncancel;
  attribute EventHandler onclose;
};

Methods and attributes that return objects implementing CloseWatcher