HTML DOM
The close() method of the CloseWatcher interface lets you skip any logic in the cancel event handler and immediately fire the close event. It then deactivates the close watcher as if destroy() was called.
Syntax
close()
Parameters
None.
Return value
None (undefined).
Examples
Using the close() method
Use the close() method to deactivate the close watcher and destroy it.
watcher.close();
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
