Search completed in 0.95 seconds.
12 results for "ononline":
Document.ononline - Web APIs
Web › API › Document › ononline
work). the online and offline events are fired when the value of this attribute changes. it is important to note that this event and attribute are inherently unreliable. a computer can be connected to a network without having internet access. 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. example there's a simple test case that you can run to verify that the events are working. references online and off...
WorkerGlobalScope.ononline - Web APIs
Web › API › WorkerGlobalScope › ononline
the ononline property of the workerglobalscope interface represents an eventhandler to be called when the online event occurs and bubbles through the worker. syntax self.ononline = function() { ... }; example the following code snippet shows an ononline handler set inside a worker: self.ononline = function() { console.log('your worker is now online'); } specifications specification status comment html living standardthe definition of 'workerglobalscope.ononline' in that specification. living standard ...
HTMLBodyElement - Web APIs
Web › API › HTMLBodyElement
d when the languagechange event is raised. windoweventhandlers.onmessage is an eventhandler called whenever an object receives a message event. windoweventhandlers.onmessageerror is an eventhandler called whenever an object receives a messageerror event. windoweventhandlers.onoffline is an eventhandler representing the code to be called when the offline event is raised. windoweventhandlers.ononline is an eventhandler representing the code to be called when the online event is raised. windoweventhandlers.onpagehide is an eventhandler representing the code to be called when the pagehide event is raised. windoweventhandlers.onpageshow is an eventhandler representing the code to be called when the pageshow event is raised. windoweventhandlers.onpopstate is an eventhandler representing th...
...e code to be called when the unload event is raised. specifications specification status comment html living standardthe definition of 'htmlbodyelement' in that specification. 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. htmlbodyelement implements this interface. html 5.1the definition of 'htmlbodyelement' in that specification. recommendation html5the definition of 'htmlbodyelement' in that specification. recommendation the following properties are now obsolete: alink, bgcolor, background, link,...
...ment' in that specification. recommendation html5the definition of 'htmlbodyelement' in that specification. recommendation the following properties are now obsolete: alink, bgcolor, background, link, text, and vlink. the following properties have been added: onafterprint, onbeforeprint, onbeforeunload, onblur, onerror, onfocus, onhashchange, onload, onmessage, onoffline, ononline, onpopstate, onresize, onstorage, and onunload. document object model (dom) level 2 html specificationthe definition of 'htmlbodyelement' in that specification. obsolete no change from document object model (dom) level 1 specification. document object model (dom) level 1 specificationthe definition of 'htmlbodyelement' in that specification. obsolete initial definiti...
Index - Web APIs
Web › API › Index
t to the document when it fails to transition into full-screen mode after a prior call to element.requestfullscreen(). 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. 944 document.ononline api, dom, document, property, reference the document.online event is fired on the <body> of each page when the browser switches between online and offline mode. additionally, the events bubble up from document.body, to document, ending at window. both events are non-cancellable (you can't prevent the user from coming online, or going offline). 945 document.onvisibilitychange ...
...hen the languagechange event occurs and bubbles through the worker. 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. 5126 workerglobalscope.ononline api, property, reference, référence(2), web workers, workerglobalscope, ononline the ononline property of the workerglobalscope interface represents an eventhandler to be called when the online event occurs and bubbles through the worker. 5127 workerglobalscope.performance api, checkexample, performance, property, read-only, reference, référence(2), workerglobalscope ...
Window: online event - Web APIs
Web › API › Window › online event
ce is fired when the browser has gained access to the network and the value of navigator.online switches to true. note: this event shouldn't be used to determine the availability of a particular website. network problems or firewalls might still prevent the website from being reached. ...
...ability of a particular website. network problems or firewalls might still prevent the website from being reached. bubbles no cancelable no interface event event handler property ononline examples // addeventlistener version window.addeventlistener('online', (event) => { console.log("you are now connected to the network."); }); // ononline version window.ononline = (event) => { console.log("you are now connected to the network."); }; specifications specification status html living standardthe definition of 'online event' in that specification. living standard ...
Window - Web APIs
Web › API › Window
called continously when the mouse is moved inside the window. globaleventhandlers.onmouseout called when the pointer leaves the window. 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. see offline event. windoweventhandlers.ononline called when network connection is established. see online event. windoweventhandlers.onpagehide called when the user navigates away from the page, before the onunload event. see pagehide event. windoweventhandlers.onpageshow called after all resources and the dom are fully loaded. see pageshow event. windoweventhandlers.onpopstate called when a back button is pressed. globaleventhandlers.
...rowser's user interface. also available via the onpaste property. connection events offline fired when the browser has lost access to the network and the value of navigator.online has switched to false. also available via the onoffline property. online fired when the browser has gained access to the network and the value of navigator.online has switched to true. also available via the ononline property. focus events blur fired when an element has lost focus. also available via the onblur property. focus fired when an element has gained focus. also available via the onfocus property gamepad events gamepadconnected fired when the browser detects that a gamepad has been connected or the first time a button/axis of the gamepad is used. also available via the ongamepadconne...
HTMLFrameSetElement - Web APIs
Web › API › HTMLFrameSetElement
d. windoweventhandlers.onlanguagechange is an eventhandler representing the code to be called when the languagechange event is raised. windoweventhandlers.onmessage is an eventhandler representing the code to be called when the message event is raised. windoweventhandlers.onoffline is an eventhandler representing the code to be called when the offline event is raised. windoweventhandlers.ononline is an eventhandler representing the code to be called when the online event is raised. windoweventhandlers.onpagehide is an eventhandler representing the code to be called when the pagehide event is raised. windoweventhandlers.onpageshow is an eventhandler representing the code to be called when the pageshow event is raised. windoweventhandlers.onpopstate is an eventhandler representing th...
Online and offline events - Web APIs
Web › API › NavigatorOnLine › Online and offline events
y, to document, ending at window. both events are non-cancellable (you can't prevent the user from coming online, or going offline). firefox 41 fires these events when the os reports a change in network connectivity on windows, linux, and os x. 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. example there's a simple test case that you can run to verify that the events are working (does not work in chrome due t...
Navigator.onLine - Web APIs
Web › API › NavigatorOnLine › onLine
e, working off the grid. in firefox and internet explorer, switching the browser to offline mode sends a false value. until firefox 41, all other conditions return a true value; testing actual behavior on nightly 68 on windows shows that it only looks for lan connection like chrome and safari giving false positives. you can see changes in the network state by listening for the events on window.ononline and window.onoffline. syntax online = window.navigator.online; value online is a boolean true or false. example view a live example. to check if you are online, query window.navigator.online, as in the following example: if (navigator.online) { console.log('online'); } else { console.log('offline'); } if the browser doesn't support navigator.online the above example will always com...
WindowEventHandlers - Web APIs
Web › API › WindowEventHandlers
raised. windoweventhandlers.onmessage is an eventhandler representing the code to be called when the message event is raised. windoweventhandlers.onmessageerror is an eventhandler representing the code to be called when the messageerror event is raised. windoweventhandlers.onoffline is an eventhandler representing the code to be called when the offline event is raised. windoweventhandlers.ononline is an eventhandler representing the code to be called when the online event is raised. windoweventhandlers.onpagehide is an eventhandler representing the code to be called when the pagehide event is raised. windoweventhandlers.onpageshow is an eventhandler representing the code to be called when the pageshow event is raised. windoweventhandlers.onpopstate is an eventhandler representing th...
WorkerGlobalScope - Web APIs
Web › API › WorkerGlobalScope
. also available via the workerglobalscope.onerror property. offline fired when the browser has lost access to the network and the value of navigator.online switched to false. also available via the workerglobalscope.onoffline property. online fired when the browser has gained access to the network and the value of navigator.online switched to true. also available via the workerglobalscope.ononline property. languagechange fired at the global/worker scope object when the user's preferred languages change. also available via the workerglobalscope.onlanguagechange property. close is an eventhandler representing the code to be called when the close event is raised. also available via the workerglobalscope.onclose property. rejectionhandled an event handler for handled promise ...
<body>: The Document Body element - HTML: Hypertext Markup Language
Web › HTML › Element › body
the fragment identifier part (starting with the hash ('#') character) of the document's current address has changed. onlanguagechange function to call when the preferred languages changed. onload function to call when the document has finished loading. onmessage function to call when the document has received a message. onoffline function to call when network communication has failed. ononline function to call when network communication has been restored. onpopstate function to call when the user has navigated session history. onredo function to call when the user has moved forward in undo transaction history. onresize function to call when the document has been resized. onstorage function to call when the storage area has changed. onundo function to call when the user has m...