OnCallDurationChanged Event



 
Fires when the CallDuration Property changes.


Syntax

    SiteKiosk.Plugins("SitePhone").OnCallDurationChanged = handler
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example keeps a HTML element containing the call duration up to date.

    <div id="CallDuration">0</div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SitePhone = SiteKiosk.Plugins("SitePhone");
    SitePhone.OnCallDurationChanged = OnCallDurationChanged;
    
    function OnCallDurationChanged()
    {
       CallDuration.innerHTML = SitePhone.CallDuration;
    }
    </SCRIPT>
    

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

Back to top