html – Route to a page when the tab is switched or any browser action performed-ThrowExceptions

Exception or error:

I am working with an aptitude test page using angular, Right now I want a functionality such that if the user switch tabs or use any browser controls the test page need to to get automatically submitted and routed to some other page.
Helps Please

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *