In the page control, Onbeforeunload and ONUNLOAD are confusing
The information found online, saying them.
However, recently experimentally, discovered their meticulous differences:
Onbeforeunload is more than onunload :)
For example, on the page, another control control1, keep reading serial data
If I write control1.stop in Window_onunloy, I will not work, because this is Control1 has been unloaded.
And written in Window_onbeforeUnLoad
It's so simple