Before-tab-display Event

Lisa Fockens Updated by Lisa Fockens

The before-tab-display event is fired before the display of a tab. This is one of the various events Wisepops can trigger as part of our JS callbacks feature.

Prevent tab display

The display of the tab can be prevented by calling preventDefault() on the event:

wisepops('listen', 'before-tab-display', function(event) {
  event.preventDefault();
});

Event target

The targeted element (event.target) is the tab HTML element, with the class wisepops-tab.


Before-popup-display Event

Before-tracked-click Event

Contact