In my page, i have some functions registered to unload event. The functions are called, when i refresh the page, meaning the unload event happens. But this fails when i come to the page after submitting a form. When i refresh, it asks if it can send the data again (submit the form again) i give okay and the page reloads. But the functions under unload events aren't called before reloading. They are called AFTER reloading. So my question is why unload event doesn't happen first when i resubmit a form?
P.S i know i should use Post/Redirect/Get (PRG) method for submitting forms. I'm just curious. Just wanna know why unload event doesn't happen first when i resubmit a form. I'm using Firefox 3.6.8