Instance Property


The submenu displayed by this menu item.


attribute SafariExtensionMenu submenu;


If the separator property is true, the value of this property is ignored.

If the value of this property is null or undefined, no submenu is displayed.

If the value is a menu that is already being displayed, no submenu is displayed and this menu item’s command is dispatched. This prevents recursive menus.

If the menu item is visible, changes to this property are not reflected until the next time the menu item is displayed.

The behavior if the submenu is removed using the SafariExtension removeMenu method while the menu item is visible is undefined.

See Also

Working with Menu Items


A Boolean value that indicates whether the menu item is a separator.


The title displayed in the menu.


The URL of the image shown next to the menu item.