Hi, I am using the onbeforeunload event to trap is anything has changed in the
form. I am using a global js variable to track if anything has changed. Its
working fine. Now I have another requirement that if the user clicks the cancel
button I need to revert back to the old values on a different form which is
already submitted. Is there any way to trap which button the user has clicked?
Hi, I am using the onbeforeunload event to trap is anything has changed in the form. I am using a global js variable to track if anything has changed. Its working fine. Now I have another requirement that if the user clicks the cancel button I need to revert back to the old values on a different form which is already submitted. Is there any way to trap which button the user has clicked?