|
It should not be such a process, it should be:
Assign value to returnValue in the onload of the window, and then assign the value to the corresponding button or elsewhere. For example, it is equal to false when onload, and true otherwise, so that the return value is guaranteed to be flase when the user has no choice. |
|