--- title: Address bar button slug: Mozilla/Add-ons/WebExtensions/user_interface/Page_actions translation_of: Mozilla/Add-ons/WebExtensions/user_interface/Page_actions ---
Comúnmente denominado botón de acción de página, esta opción de interfaz de usuario es un botón agregado a la barra de direcciones del navegador. Los usuarios pueden hacer clic en el botón para interactuar con sus extensiones.

El botón de la barra de direcciones (o página de acción) es muy parecida al botón de la barra de herramientas (o acción del navegador).
Las diferencias son:
show_matches y hide_matches manifest key), y tu puedes llamar pageAction.show() y pageAction.hide() para mostrar o ocultar esto en pestañas especificas.Usa una página de acción cuando cuando la acción este relacionada a la página en curso, y una acción de navegador cuando cuando la acción este relacionada a todas o a muchas páginas. Por ejemplo:
| Type | Bookmarks action | Content action | Tabs operation |
|---|---|---|---|
| page action | Marcar esta página | Reddit enhancement | Enviar una pestaña |
| browser action | Mostrar todos los marcadores | Habilitar ad-blocking | Sincronizar todas las pestañas |
You define the page action's properties using the page_action key in manifest.json:
"page_action": {
"browser_style": true,
"default_icon": {
"19": "button/geo-19.png",
"38": "button/geo-38.png"
},
"default_title": "Whereami?"
}
The only mandatory key is default_icon.
There are two ways to specify a page action: with or without a popup.
pageAction.onClicked:browser.pageAction.onClicked.addListener(handleClick);
click event is not dispatched. Instead, the popup appears when the user clicks the button. The user then interacts with the popup. When the user clicks outside of the popup, it closes automatically. See the Popup article for more details on creating and managing popups.Note that your extension can have one-page action only.
You can change any of the page action properties programmatically using the pageAction API.
For details on how to create icons to use with your page action, see Iconography in the Photon Design System documentation.
The webextensions-examples repository on GitHub includes the chill-out example which implements a page action without a popup.