OnButtonStatusChange Event



 
Fires when the status of a button changes.


Syntax

    SiteKioskWindow.SiteKioskWebBrowser.OnButtonStatusChange = handler
Parameters
    ID Integer that contains the ID of the changed button.
Remarks
    The button IDs defined in the skin files are as follows:

    Forward = 1
    Back = 2
    Stop = 3
    Refresh = 4
    Home = 5
    Search = 6
    Print = 7
    Email = 8
    Programs = 9
    Mediamail = 10
    Logout = 11
    Close = 12

    The object that caused the event can be referenced in the event function using "this".
Examples
    The following example changes the forward button image if its status changes.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKioskWindow.SiteKioskWebBrowser.OnButtonStatusChange = OBTSChange;
    function OBTSChange(ai_ButtonID)
    {
       if(ai_ButtonID==1)
       {
          window.document.images.1.src="new_image.gif";
       }
    }
    </SCRIPT>

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

Back to top