IsButtonVisible Method



 
The IsButtonVisible method determines if a specified button is visible.


Syntax

    [boolean=] SiteKioskWindow.SiteKioskWebBrowser.IsButtonVisible(ID)
    
Parameters
    ID Integer that specifies the ID of the button.
Return Value
    Returns a Boolean value that is true if the button is visible 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 shows the visibility of the print button in an alert window.

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

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

Back to top