GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

6 results across 6 corpora for pageAction.onClicked.

Developer library 6

Add a button to the toolbar

om/mdn/webextensions-examples/tree/main/open-my-page-button) - [`page_action`](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/page_action) manifest key - [`pageAction`](/docs/Mozilla/Add-ons/WebExtensions/API/pageAction) API - Page action examples: - [chill-out](https://github.com/mdn/webextensions-examples/tree/main/chill-out)

page_action

and JavaScript. You must specify this key to include a page action in your extension. When specified, you can manipulate the button programmatically using the pageAction API. If you supply a popup, then the popup is opened when the user clicks the icon, and your JavaScript running in the popup can handle the user's interaction with it. If you don't supply a popup, then a click event is dispatched to your extension'

User actions

g an extension suggestion in the address bar (omnibox) (this is only treated as a user action from Firefox 142). The APIs enabled by a user action are: - The pageAction.openPopup APIs that opens an extension's page action popup. The user does this by clicking the page action. - The sidebarAction.open, sidebarAction.close, and sidebarAction.toggle APIs open and close an extension's sidebar. The user does this from s

Address bar button

Commonly referred to as a [page action](/docs/Mozilla/Add-ons/WebExtensions/API/pageAction) button, this user interface option is a button added to the browser address bar. Users click the button to interact with extensions. ![Address bar button that is an icon of a paw print, highlighted, in the Firefox address bar](address_bar_button.png) ## Page actions and browser actions The address bar button (or page action

pageAction

using HTML, CSS, and JavaScript. JavaScript running in the popup gets access to all the same WebExtension APIs as your background scripts. Despite being named `pageAction`, the action code doesn't get access to web page content. To access web page DOM, you need to add a [content script](/docs/Mozilla/Add-ons/WebExtensions/Content_scripts) and interact with it. The button also has a context menu, and you can add item

pageAction.openPopup()

You can only call this function from inside the handler for a [user action](/docs/Mozilla/Add-ons/WebExtensions/User_actions). ## Syntax ```js-nolint browser.pageAction.openPopup() ``` ### Parameters None. ### Return value A [`Promise`](/docs/Web/JavaScript/Reference/Global_Objects/Promise) that is resolved with no arguments. ## Examples Open the popup when the user selects a context menu item: ```js browser

JSON results · Services directory