OnProgressChange Event



 
Fires when the navigation progress changes.


Syntax

    SiteKioskWindow.SiteKioskWebBrowser.OnProgressChange = handler
Parameters
    al_Cur Long value that contains the current value of the progress status.
    al_Max Long value that contains the maximum value of the progress status.
Remarks
    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example shows the current status of the progress change.

    <div id="id_statustext"></div>
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKioskWindow.SiteKioskWebBrowser.OnProgressChange = OPChange;
    function OPChange(al_Cur, al_Max)
    {
       if (al_Cur < al_Max && al_Max > 0)
       {
          id_statustext.innerHTML=(Math.Round(al_Cur/al_Max*100))+"%";
       }
    }
    </SCRIPT>

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

Back to top