remove()

Syntax:

[void] window.menu.remove(MenuItem menuItem) 

or

[void] menu.remove(MenuItem menuItem)

Description:

Call the remove method to remove a menu item from the top level of the options menu list. If the removed menu item has a cascading submenu in it, the submenu will also be removed.

Arguments:

Return value:

This method does not return a value.

Remarks:

Menu items in a cascading submenu list are removed using the MenuItem object's method. See the description of the MenuItem.remove method.

Example code:

See the example code in the description of the MenuItem.onSelect property.