The effect is as follows:
When wonder.event.returnValue is empty, this selection prompt box will not appear.
But the question comes again: If I want the user to be able to save user-related data when he clicks the "OK" button to close the browser. So what should I do?
Modify the above code as follows: