devtools.panels.ElementsPanel

An ElementsPanel represents the HTML/CSS inspector in the browser's devtools. This is called the Page Inspector in Firefox and the Elements panel in Chrome.

Functions

devtools.panels.ElementsPanel.createSidebarPane()
Creates a pane in the inspector's sidebar.

Events

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 compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
createSidebarPane
Yes
79
57
?
Yes
No
?
?
No
?
?
?
onSelectionChanged
Yes
79
56
?
Yes
No
?
?
No
?
?
?

Note: This API is based on Chromium's chrome.devtools API.

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/devtools/panels/ElementsPanel