function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Console Listner for tab focus change

Hi all, 
In Salesforce Console, I'm trying to capture when the user is changing his focus on things, and having a but of a hard time.

In the documentation there is a methud about how to identify sub-tab Focus changes however I could not find how to do that on Primary tabs.

Any idea? 

I tried to addEventListener  on sforce.console.onEnclosingTabRefresh and it didn't work..


SandhyaSandhya (Salesforce Developers) 
Hi RoyGilad​,

Below is the link for onfocus primary tab.

Hope this helps you!

Please mark it as solved if this helps you so that it will make for others as proper solution.

Thanks and Regards