G
Guest
I have a function that checks whether the user is trying to navigate away
from the page before saving all their data. I achieve this using the
window.onbeforeunload javascript event. It fires when somone clicks on a
link or button but not when someone changes the selected index of a
dropdownlist or radio button.
I tried registering the following script:
RegisterOnSubmitStatement("submit", "confirmClose;") but it does not fire
when a dropdownlist or radio button list postsback. Any ideas on how to do
this?
Thanks
from the page before saving all their data. I achieve this using the
window.onbeforeunload javascript event. It fires when somone clicks on a
link or button but not when someone changes the selected index of a
dropdownlist or radio button.
I tried registering the following script:
RegisterOnSubmitStatement("submit", "confirmClose;") but it does not fire
when a dropdownlist or radio button list postsback. Any ideas on how to do
this?
Thanks