Use the two buttons below to test normal transitions.

Close the tab to test beforeunload behavior.