How to alter the Browser's Refresh Event and trigger a custom function?
- by Starx
As you all know, when we hit the refresh button, the entire page starts to reload. But I dont that, I only want to refresh some portions, which need to be refresh in case of a need.
I know, I can use ajax to reload a piece of content. But I want to attach this ajax function while the user clicks the refresh button or presses F5 or presses Ctrl+F5.