Hi there,
Instead of attempting to police a user’s actions, which can backfire depending on how their browser is setup, I would suggest it’s better to prepare for them interacting with it in this way. There’s a few ways to handle this - one is to save their changes to the database (via auto-binding, or page by page with a ‘save’ or ‘continue’ button). Another one would be to use URL parameters. If it’s more than some radio buttons and checkboxes (meaning if you have large paragraphs of text) this may not be the best move, but some combination could be a good compromise.
Hope this helps point you in the right direction!