honey

honey

  • NA
  • 13
  • 46.9k

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)