Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

TabSelect

The TabSelect event is executed when a tab is selected.

General info

Specification
Addons specific
Interface
Event
Bubbles
Yes
Cancelable
No
Target
tab
Default Action
None

Properties

Property Type Description
target Read only EventTarget The event target (the topmost target in the DOM tree).
type Read only DOMString The type of event.
bubbles Read only Boolean Whether the event normally bubbles or not
cancelable Read only Boolean Whether the event is cancellable or not?

Notes

The previously selected tab is available via event.detail from within the listener callback:

var previousTab = event.detail.previousTab;

Document Tags and Contributors

 Contributors to this page: nhnt11, teoli, Sheppy, ethertank, louisremi
 Last updated by: nhnt11,