OnRemove Event



 
Fires when a window is closed.


Syntax

    SiteKiosk.WindowList.OnRemove = handler
Parameters
    skwin WindowInfo object that represents the closed window.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example counts all closed windows.

    <div id="rem">Create new windows and close them.</div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    var countclosed = 0;
    SiteKiosk.WindowList.OnRemove = OnRemove;
    function OnRemove(skwin)
    {
       countclosed++;
       rem.innerHTML = countclosed;
    }
    </SCRIPT>
    

Applies to
    SiteKiosk v5.0 (and later versions).

Back to top