Instance Method

createMenu

Creates and returns a new menu.

Declaration

SafariExtensionMenu createMenu(in DOMString identifier);

Parameters

identifier

The unique identifier for the menu.

Return Value

The new menu object.

Discussion

If identifier is not unique, an exception is thrown.

See Also

Working with Menus

menus

All of the menus of an extension.

removeMenu

Removes the specified menu.