Go to the original post:Catch closing tab/menu changing event.

Original post by

Analyst/Developer