Is there any onTab change event in javascript . Like whenwver the user is moved to new tab then an event is fired .
I have tried onfocus , onblur ,add listener but they are behaving differently in different browser. So is there any event that can be created when the tab is changed in java script ?
I tried the following links
Event for when user switches browser tabs
Also tried the https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API
but again the events are not proper