do something if user chooses to stay on the page

310 views Asked by At

I am using this to determine if user has clicked refresh button of the browser.

It gives the user an option to stay on the page or to leave the page.

If user chooses to stay on the page, I want to do something (call some method). Is that possible?

0

There are 0 answers