ononline Event in JavaScript
ononline Event in JavaScript
The ononline event is used to trigger when the browser starts to work online. It is similar to but opposite of onoffline event. We can also find whether the broswer is online or offline by simply using navigator.onLine property.
Syntax:-
Its syntax is:- < element ononline="my_script" > OR object.ononline= function(){my_script} OR object.addEventListener("online", my_script)