# OnQuit2 Event Fires while SiteKiosk is terminated. Syntax
    SiteKiosk.OnQuit2 = handler
Parameters
shutdownmode | Integer value that contains the shutdown mode.
Remarks The shutdown mode can be one of the following: 0 : Quit 1 : Restart 2 : Reboot 3 : Shutdown 4 : Logoff This event fires directly after OnQuit. The object that caused the event can be referenced in the event function using "this". Examples The following example shows the shutdown mode in an alert window when SiteKiosk is terminated.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.OnQuit2 = OnQuit2;
    function OnQuit2(shutdownmode)
    {
       alert(shutdownmode);
    }
    </SCRIPT>
Applies to SiteKiosk v5.5 (and later versions). Back to top