# OnActivate Event Fires when a window is activated. Syntax
    SiteKiosk.WindowList.OnActivate = handler
Parameters
skwin | WindowInfo object that represents the activated window.
Remarks To activate a window means to focus it. The object that caused the event can be referenced in the event function using "this". Examples The following example counts the activations of windows that are not the main window.
    <div id="act">Create new windows and focus them.</div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    var countactivate = 0;
    SiteKiosk.WindowList.OnActivate = OnActivate;
    function OnActivate(skwin)
    {
       mainwindow = SiteKiosk.WindowList.MainWindow;
       if (skwin.Handle != mainwindow.Handle)
       {
          countactivate++;
          act.innerHTML = countactivate;
       }
    }
    </SCRIPT>
Applies to SiteKiosk v5.0 (and later versions). Back to top