# AddDelayedEvent Method The AddDelayedEvent method calls a script function after a specified delay. Syntax
    [evtid=] SiteKiosk.Scheduler.AddDelayedEvent(delay, func)
Parameters
delay | Long value that specifies the delay.
func | Function that is called after the specified delay.
Return Value Returns a Long value that contains the event ID. Remarks The func parameter can be a JavaScript or VBScript function. When this function is called, the event ID is transmitted as a parameter. Examples The following example calls a JavaScript function after 5 seconds.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    evtid = SiteKiosk.Scheduler.AddDelayedEvent(5000, myfunction);
    function myfunction(eventID)
    {
       alert("5 seconds have passed");
    }
    </SCRIPT>
Applies to SiteKiosk v5.0 (and later versions). Back to top