SiteKiosk Documentation
One Step Back

OnShowContextMenu Event




Fires when the context menu is displayed.


Syntax

    SiteKioskWindow.SiteKioskWebBrowser.OnShowContextMenu = handler
Parameters
    menutypeLong value that contains the menu type.
    posxLong value that contains the horizontal position.
    posyLong value that contains the vertical position.
    objObject 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 topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -