Networkstatus Function to show a notice when the browser has lost/gained access to the network. Include Sweet Alert & network.js in your project <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script> <script src="your-path/network.js"></script> DONE - SCREENSHOTS BELOW