0

I need to be able to know if the user minimized the webpage or went to another Tab in their browser, Is that possible?

Cody Butz
  • 294
  • 4
  • 15

1 Answers1

0

Afraid not, the closest you can get is blur/focus on the window object like this:

$(window).blur(function() { console.log('left'); });
$(window).focus(function() { console.log('came back'); });
Martin Jespersen
  • 25,743
  • 8
  • 56
  • 68
  • 2
    You should mention this uses jQuery. In general, you won't get a positive reaction from assuming that a jQuery answer is acceptable. – Matt Ball Jan 13 '11 at 01:44