I have researched for a few days and couldn't get a perfect solution for javascript to detect every close and refresh action on a browser(IE only)
for close, i manage to detect: ALT+F4 key press, [X] button clicked key (but to a certain extent when the browser window is maximized only, but will sometimes be mixed up with refresh button click)
i failed to detect browser's File>Exit context menu command, and taskbar's right click>Close context menu command
for refresh, i managed to detect: CTRL+R and F5 key press,
but failed to detect browser's refresh button click event(due to the flexibility of the navigation toolbar customization ability), and context menu click event, both from View>Refresh and right click on page>refresh, so anyone could guide me to detect those actions that i have failed would be greatly appreciated.
This post has been edited by koayty: Nov 24 2008, 12:01 PM
JavaScript Javascript detect close and refresh browser, need help from javascript sifus