How to get event of page refresh. i want to detect that user has refreshed page
A:
not sure how to do it in Jquery
window.onbeforeunload = function (e) {
var e = e || window.event;
// For IE and Firefox
if (e) {
e.returnValue = 'Any string';
}
// For Safari
return 'Any string';
};
Wbdvlpr
2009-08-13 10:24:33
This will catch refresh, back, forward, and closing of the window
rahul
2009-08-13 10:32:40