# OnShowContextMenu Event Fires when the context menu is displayed. Syntax
    SiteKioskWindow.SiteKioskWebBrowser.OnShowContextMenu = handler
Parameters
menutype | Long value that contains the menu type.
posx | Long value that contains the horizontal position.
posy | Long value that contains the vertical position.
obj | Object containing the clicked element.
Remarks The object that caused the event can be referenced in the event function using "this". Possible menu types are: 0 : default 1 : image 2 : control 3 : table 4 : textselect 5 : anchor Examples The following example shows an alert window every time the context menu is displayed.
    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKioskWindow.SiteKioskWebBrowser.OnShowContextMenu = OnContextMenu;
    function OnContextMenu(menutype, posx, posy, obj)
    {
       alert('Context menu displayed.');
    }
    </SCRIPT>
Applies to SiteKiosk v6.0 (and later versions). Back to top