# OnCustomMessage Event Fires when a custom message has been sent. Syntax
    SiteCafe.Server.Computers.OnCustomMessage = handler
Parameters
index | Long value that contains the computer index.
messageID | Long value that contains the message ID.
message | String that contains the message.
Remarks The object that caused the event can be referenced in the event function using "this". Examples The following example displays the message when a custom message has been sent.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe.Server.Computers.OnCustomMessage = OnCustomMessage;
    function OnCustomMessage(index, messageID, message)
    {
       alert("Message: " + message);
    }
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top