How can H5+API Reference, like Yuansheng, detect WIFI signals but do not have a network?

http://www.html5plus.org/doc/...
this official website does not have this kind of situation, can only monitor the WIFI signal. But can not monitor this WIFI signal whether there is a network. It"s like
on PC connected to the network but not on the Internet. There will be a yellow triangle exclamation mark
which god can answer? Thank you very much ~

Jun.10,2022

generally whether there is a network or not, I judge by event monitoring:
online Or offline

window.addEventListener('online',  function () {
    console.log('online');
});
window.addEventListener('offline', function () {
   console.log('offline');
});
Menu