honey

honey

  • 2.1k
  • 13
  • 44.1k

Detect browser refreshed using jquery..

Sep 24 2014 1:44 AM
Hi.. Gud mrng.

I have d requirement that if the user clicked refresh button or f5 I need to redirect the page to Login page..

I had done with browser close using 
 $(window).bind('beforeunload', function (e) {
   //my logiic
});

But i failed in the refresh or pressing f5..

if u know .
plz help me..

Thanks,
Honey..

Answers (2)