Search completed in 1.14 seconds.
14 results for "onoffline":
WorkerGlobalScope.onoffline - Web APIs
WebAPIWorkerGlobalScopeonoffline
the onoffline property of the workerglobalscope interface represents an eventhandler to be called when the offline event occurs and bubbles through the worker.
... syntax self.onoffline = function() { ...
... }; example the following code snippet shows an onoffline handler set inside a worker: self.onoffline = function() { console.log('your worker is now offline'); } specifications specification status comment html living standardthe definition of 'workerglobalscope.onoffline' in that specification.
Document.onoffline - Web APIs
WebAPIDocumentonoffline
the document.onoffline event handler is called when an offline is fired on the <body> element and bubbles up, when navigator.online property changes and becomes false.
HTMLBodyElement - Web APIs
WebAPIHTMLBodyElement
windoweventhandlers.onoffline is an eventhandler representing the code to be called when the offline event is raised.
... living standard technically, the event-related properties onafterprint, onbeforeprint, onbeforeunload, onblur, onerror, onfocus, onhashchange, onlanguagechange, onload, onmessage, onoffline, ononline, onpopstate, onresize, onstorage, and onunload, have been moved to windoweventhandlers.
... the following properties have been added: onafterprint, onbeforeprint, onbeforeunload, onblur, onerror, onfocus, onhashchange, onload, onmessage, onoffline, ononline, onpopstate, onresize, onstorage, and onunload.
Document.ononline - Web APIs
WebAPIDocumentononline
you can register listeners for these events in a few familiar ways: using addeventlistener on the window, document, or document.body by setting the .ononline or .onoffline properties on document or document.body to a javascript function object.
... (note: using window.ononline or window.onoffline will not work for compatibility reasons.) by specifying ononline="..." or onoffline="..." attributes on the <body> tag in the html markup.
Index - Web APIs
WebAPIIndex
943 document.onoffline api, dom, needscontent, property, reference the document.onoffline event handler is called when an offline is fired on the <body> element and bubbles up, when navigator.online property changes and becomes false.
... 5125 workerglobalscope.onoffline api, property, reference, référence(2), web workers, workerglobalscope, onoffline the onoffline property of the workerglobalscope interface represents an eventhandler to be called when the offline event occurs and bubbles through the worker.
Online and offline events - Web APIs
WebAPINavigatorOnLineOnline and offline events
you can register listeners for these events in a few familiar ways: using addeventlistener on the window, document, or document.body by setting the .ononline or .onoffline properties on document or document.body to a javascript function object.
... (note: using window.ononline or window.onoffline will not work for compatibility reasons.) by specifying ononline="..." or onoffline="..." attributes on the <body> tag in the html markup.
Window - Web APIs
WebAPIWindow
globaleventhandlers.onmouseover called when the pointer enters the window globaleventhandlers.onmouseup called when any mouse button is released windoweventhandlers.onoffline called when network connection is lost.
... also available via the onoffline property.
Application cache implementation overview
MozillaApplication cache implementation overview
nshttpchannel::onofflinecacheentryavailable is then invoked.
HTMLFrameSetElement - Web APIs
WebAPIHTMLFrameSetElement
windoweventhandlers.onoffline is an eventhandler representing the code to be called when the offline event is raised.
Navigator.onLine - Web APIs
WebAPINavigatorOnLineonLine
you can see changes in the network state by listening for the events on window.ononline and window.onoffline.
Window: offline event - Web APIs
WebAPIWindowoffline event
bubbles no cancelable no interface event event handler property onoffline examples // addeventlistener version window.addeventlistener('offline', (event) => { console.log("the network connection has been lost."); }); // onoffline version window.onoffline = (event) => { console.log("the network connection has been lost."); }; specifications specification status html living standardthe definition of 'offline event' in that specification.
WindowEventHandlers - Web APIs
WebAPIWindowEventHandlers
windoweventhandlers.onoffline is an eventhandler representing the code to be called when the offline event is raised.
WorkerGlobalScope - Web APIs
WebAPIWorkerGlobalScope
also available via the workerglobalscope.onoffline property.
<body>: The Document Body element - HTML: Hypertext Markup Language
WebHTMLElementbody
onoffline function to call when network communication has failed.