The real question is why do you want to detect this? It smells like a band-aid to a bigger problem that you have not clued us in on.
In my project i want to capture the refresh event.
But when i call callToMyMethod() where i get a new URL and i hit it again.
So even when I close my jsp page the unnacessay java code is being called.
Can anyone suggest any releveant way to capture only refresh?