Javascript examples for DOM Event:ononline
The ononline event occurs when the browser starts to work online.
Bubbles | No |
---|---|
Cancelable | No |
Supported HTML tags: | <body> |
<!DOCTYPE html> <html> <body ononline="onFunction()" onoffline="offFunction()"> <script> function onFunction() {//from w ww. j a v a2 s. co m console.log("Your browser is working online."); } function offFunction() { console.log("Your browser is working offline."); } </script> </body> </html>