Creating Dynamic Context Menus
This sample demonstrates how to create a context menu that uses the setCapture and releaseCapture methods. To create a context menu, the oncontextmenu event is cancelled, preventing the default context menu from opening.
A context menu is created that lists all of the properties for the selected DHTML object. Click on one of the listed properties to see its value. When one of the properties is clicked, or when you click anywhere on the screen, the context menu will close.
Things to get context menu information from:Right-click for Context Menu
Right-click for Context Menu
© 1999 Microsoft Corporation. All rights reserved. Terms of use.