Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>IE 8 will support the <a href="https://msdn.microsoft.com/en-us/library/cc304129%28VS.85%29.aspx#status_improvements%29" rel="noreferrer">window.navigator.onLine</a> property.</p> <p>But of course that doesn't help with other browsers or operating systems. I predict other browser vendors will decide to provide that property as well given the importance of knowing online/offline status in Ajax applications.</p> <p>Until that happens, either XHR or an <code>Image()</code> or <code>&lt;img&gt;</code> request can provide something close to the functionality you want.</p> <p><strong>Update (2014/11/16)</strong></p> <p>Major browsers now support this property, but your results will vary.</p> <p>Quote from <a href="https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine.onLine" rel="noreferrer">Mozilla Documentation</a>:</p> <blockquote> <p>In Chrome and Safari, if the browser is not able to connect to a local area network (LAN) or a router, it is offline; all other conditions return <code>true</code>. So while you can assume that the browser is offline when it returns a <code>false</code> value, you cannot assume that a true value necessarily means that the browser can access the internet. You could be getting false positives, such as in cases where the computer is running a virtualization software that has virtual ethernet adapters that are always "connected." Therefore, if you really want to determine the online status of the browser, you should develop additional means for checking.</p> <p>In Firefox and Internet Explorer, switching the browser to offline mode sends a <code>false</code> value. All other conditions return a <code>true</code> value.</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload