The onbeforeunload fires just before the current document begins to
unload due to form submission or window closure.
How can I have this code run after window closure (X) but not after
pressing a button (form submission)?
unload due to form submission or window closure.
How can I have this code run after window closure (X) but not after
pressing a button (form submission)?
Comment