IWindowEventHandlers.OnBeforeUnload

IWindowEventHandlers.OnBeforeUnload event

获取或设置事件处理程序

public event DOMEventHandler OnBeforeUnload;

也可以看看