# OnTrayIcon Event Fires when the tray icon is displayed. Syntax
    SiteCafe.OnTrayIcon = handler
Parameters
mouseX | Long value that contains the horizontal mouse position.
mouseY | Long value that contains the vertical mouse position.
event | Long value that contains the window message.
Remarks The object that caused the event can be referenced in the event function using "this". Examples See Window Notifications (MSDN) fur further information about possible events. The following example displays an alert window when the tray icon is displayed.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteCafe.OnTrayIcon = OnTrayIcon;
    function OnTrayIcon(mouseX, mouseY, event)
    {
       alert("mouseX: " + mouseX);
       alert("mouseY: " + mouseY);
       alert("event: " + event);
    }
    </SCRIPT>
Applies to SiteKiosk v6.2 (and later versions). Back to top