Navigate away from this page or close the tab to get a
beforeunload
dialog.