Differences between Onbeforeunload and ONUNLOAD

xiaoxiao2021-03-06  38

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

转载请注明原文地址:https://www.9cbs.com/read-68301.html

New Post(0)