iesniffer OnWBQuit event
Return to Introduction  Previous page  Next page
Applies to
IESniffer component.  

  TIESnifferEvent = procedure(Sender: TObject; const URL: Stringconst Browser: IWebBrowser2) of object;  
property OnWBQuit: TIESnifferEvent;  

The OnWBQuit event occurs when the Internet Explorer is about to shut down (when user close the window or the window closed automatically by some script).  
Write the OnWBQuit event handler to be notified when the Internet Explorer window is about to be closed. After receiving OnWBQuit event you can not use Browser anymore since its handle will be destroyed after this event. The instance of this Browser object already removed from internal list of IESniffer component.  

See also
OnWindowUnload and OnWindowLoad events.