Navigate to another page to fire the before unload event. go