How to Use onbeforeunload with Form Submit Buttons


While doing some programming I came across an interesting predicament. While I understand it’s evil to make it hard for a user to leave a page, I’m not here to argue the merits (or lack thereof) of onbeforeunload. On a particular form, we are forcing the browser to not cache the information to avoid potential… Read more »