IsButtonEnabled Method



 
The IsButtonEnabled method determines if a specified button is shown as enabled or disabled.


Syntax

    [boolean=] SiteKioskWindow.SiteKioskWebBrowser.IsButtonEnabled(ID)
    
Parameters
    ID Integer that specifies the ID of the button.
Return Value
    Returns a Boolean value that is true if the button is enabled and false if not.
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
    Favorites = 13
Examples
    The following example determines if a specified button exists and shows it in an alert window.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    alert(SiteKioskWindow.SiteKioskWebBrowser.IsButtonEnabled(7));
    </SCRIPT>

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

Back to top