This example demonstrates the use of the onCreateMenu callback option, which allows you to customise context menus after they are created but before they are shown to the user. You can alter/delete existing items as well as adding new menu items. See the source code for this example for more information.