showContextMenu (client-side)

Displays a right-click context menu under the current mouse position. This routine should be set as the value of the onContextMenu attribute for the element to which you want to attach a context menu.

Definition

sub showContextMenu(elContextMenu,
                    sWidth)

Parameters

  • elContextMenu
    An element formatted as a context menu.
  • sWidth
    A string that contains a number specifying the width of the context menu. This value can contain a "px" unit suffix.

Return Value

None.

Remarks

For more information about how context menus are configured, see MenuControl.

This routine is available in the include file ActionPageUtil.asp.

See Also

Client-Side Routines

clickContextMenuItem (client-side)

closeContextMenu (client-side)

execTaskFromContextMenu (client-side)

toggleContextMenuHighlight (client-side)

Server-Side Routines

Copyright © 2005 Microsoft Corporation.
All rights reserved.