diff --git a/files/en-us/mozilla/add-ons/webextensions/api/browseraction/onclicked/index.md b/files/en-us/mozilla/add-ons/webextensions/api/browseraction/onclicked/index.md index a2b726f9706669b..24b2b608739f271 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/browseraction/onclicked/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/browseraction/onclicked/index.md @@ -53,11 +53,11 @@ Events have three functions: ## Examples -When the user clicks the icon, disable it for the active tab, and log the tab's URL: +When the user clicks the browser action icon this code turns it off for the active tab and logs the tab's URL: ```js browser.browserAction.onClicked.addListener((tab) => { - // disable the active tab + // disable the browser action for the tab browser.browserAction.disable(tab.id); // requires the "tabs" or "activeTab" permission, or host permissions for the URL console.log(tab.url);