CheckEscapePassword Method



 
The CheckEscapePassword method checks whether a given string matches the correct escape window password.


Syntax

    AdminFunctions.CheckEscapePassword(password)
Parameters
    password String value that specifies the
    password to be checked.
Return Value
    Returns a Boolean value that is true if the given password is correct.
Remarks
    The AdminFunctions object is only available in the escape menu.
Examples
    The following example allows to quit SiteKiosk if a correct password is entered.

    <input type="password" id="pwd" />
    <input type="button" value="Quit" id="quitbtn" />
    
    <script type="text/javascript">
    window.external.InitScriptInterface();
    quitbtn.onclick = function() {
      if (AdminFunctions.CheckEscapePassword(pwd.value))
        SiteKiosk.Quit();
      else
        alert('Incorrect password.');
    }
    </script>

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

Back to top