# How to create tab menu item?

**URL:** <https://discourse.mozilla.org/t/how-to-create-tab-menu-item/21689>\
**Category:** Development\
**Created:** [November 15, 2017, 4:28pm UTC](https://discourse.mozilla.org/t/how-to-create-tab-menu-item/21689 "2017-11-15T16:28:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dex](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/dex/32/21615_2.png) [@dex](https://discourse.mozilla.org/u/dex)\
**Post date:** [November 15, 2017, 4:28pm UTC](https://discourse.mozilla.org/t/how-to-create-tab-menu-item/21689/1 "2017-11-15T16:28:09Z")

</div>

Hi.

I didn’t find it in the documentation.

Is there an option to create menu item in the tab context menu? Or is there a chance that such API will come out?

Thanks.

---

<div class="post-metadata">

**Author:** ![erosman](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/erosman/32/15447_2.png) [@erosman](https://discourse.mozilla.org/u/erosman)\
**Post date:** [November 15, 2017, 8:04pm UTC](https://discourse.mozilla.org/t/how-to-create-tab-menu-item/21689/2 "2017-11-15T20:04:31Z")

</div>

It is the same as other context-menu but with `contexts: ['tab']` (FF53+)

> **[menus.create()](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/menus/create)**
>
> Creates a new menu item, given an options object defining properties for the item.

> **[menus.ContextType](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/menus/ContextType)**
>
> The different contexts a menu item can appear in.

---

<div class="post-metadata">

**Author:** ![dex](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/dex/32/21615_2.png) [@dex](https://discourse.mozilla.org/u/dex)\
**Post date:** [November 15, 2017, 8:33pm UTC](https://discourse.mozilla.org/t/how-to-create-tab-menu-item/21689/3 "2017-11-15T20:33:10Z")

</div>

Thank you very much!
