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 onSelectionChanged.
Developer library 6
tabs
a window. - tabs.onRemoved - : Fired when a tab is closed. - tabs.onReplaced - : Fired when a tab is replaced with another tab due to prerendering. - tabs.onSelectionChanged - : Fires when the selected tab in a window changes. **Deprecated**: use tabs.onActivated instead. - tabs.onUpdated - : Fired when a tab is updated. - tabs.onZoomChange - : Fired when a tab is zoomed. h2 ## Browser compatibility
tabs.onSelectionChanged
> [!WARNING] > This event is deprecated. Use tabs.onActivated instead. Fires when the selected tab in a window changes. ## Syntax ```js-nolint browser.tabs.onSelectionChanged.addListener(listener) browser.tabs.onSelectionChanged.removeListener(listener) browser.tabs.onSelectionChanged.hasListener(listener) ``` Events have three functions: - `addListener(listener)` - : Adds a listener to this event. - `removeLi
devtools.panels.ElementsPanel
bExtensions/API/devtools/panels/ElementsPanel/createSidebarPane) - : Creates a pane in the inspector's sidebar. ## Events - [`devtools.panels.ElementsPanel.onSelectionChanged`](/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/ElementsPanel/onSelectionChanged) - : Fired when the user selects a different element in the page, for example using the "Inspect element" context menu item. ## Browser compatibi
onSelectionChanged
owser's developer tools, for example by selecting the "Inspect Element" context menu item in Firefox. ## Syntax ```js-nolint browser.devtools.panels.elements.onSelectionChanged.addListener(listener) browser.devtools.panels.elements.onSelectionChanged.removeListener(listener) browser.devtools.panels.elements.onSelectionChanged.hasListener(listener) ``` Events have three functions: - `addListener(listener)` - : A
devtools.panels.ElementsPanel.setExpression()
s the [`tagName`](/docs/Web/API/Element/tagName) of the currently selected element: ```js function onCreated(sidebarPane) { browser.devtools.panels.elements.onSelectionChanged.addListener(() => { const exp = "$0 && $0.tagName"; const title = "Selected Element tagName"; sidebarPane.setExpression(exp, title); }); } browser.devtools.panels.elements.createSidebarPane("My pane").then(onCreated); ``` #
Firefox 43 release notes for developers
[To test the latest developer features of Firefox, install Firefox Developer Edition](https://www.firefox.com/en-US/channel/desktop/developer/) Firefox 43 was released on December 15, 2015. This article lists key changes that are useful not only for web developers, but also Firefox and Gecko developers as well as add-on developers. ## Changes for web developers ### Developer Tools Highlights: - [Server logging in