# OnQuit Event Fires while SiteKiosk is terminated. Syntax
    SiteKiosk.OnQuit = handler
Remarks Use OnQuit2 to receive the shutdown mode. The object that caused the event can be referenced in the event function using "this". Examples The following example shows an alert window when SiteKiosk is terminated.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.OnQuit = OnQuit;
    function OnQuit()
    {
       alert("SiteKiosk will close");
    }
    </SCRIPT>
Applies to SiteKiosk v5.5 (and later versions). Back to top