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