ahmadajah03 Thu Aug 2020 1 year ago

Online & Offline Events In Javascript

By taking advantage of the 'online' and 'offline' events in JavaScript, you are able to notify your users that your web application is no longer online or even perform different actions based on the status.

In this video I show you how to use these events to create simple messages that appear, showing the status of the online state of the browser.

For your reference, check this out:
https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine
https://developer.mozilla.org/en-US/docs/Web/Events/online

Follow me on Twitter @dcode!

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
code coding programming tutorial introduction beginner walkthrough guide software development simple easy into english with example examples js javascript es5 es6 es7 new features ecmascript ecmascript2015 website web app html html5 css design async sync ajax offline internet check connection online test whether or not browser chrome explorer ie mozilla firefox safari iOS request asynchronous synchronous