SiteKiosk Documentation
One Step Back

OnInsert Event




Fires when a new window is created.


Syntax

    SiteKiosk.WindowList.OnInsert = handler
Parameters
    skwinWindowInfo object that represents the created window.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example counts all new windows.

    <div id="act">Create new windows.</div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    var countcreated = 0;
    SiteKiosk.WindowList.OnInsert = OnInsert;
    function OnInsert(skwin)
    {
       countcreated++;
       act.innerHTML = countcreated;
    }
    </SCRIPT>
    

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

Back to topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -