I know it's possible to detect right before a user closes a webpage using onbeforeunload
. I was just wondering if there was a similar event fired right before the user switches tabs or minimizes. I'm not looking for an event that fires after the user changes tabs.
Is this possible?