Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body ononline="onFunction()" onoffline="offFunction()"> <p>Try to disconnect from the internet to toggle between working online and offline.</p> <script> function onFunction() { alert ("Your browser is working online."); } function offFunction() { alert ("Your browser is working offline."); } </script> </body> </html>