javascript navigator onLine

onLineNN n/a IE 4 DOM n/a  

Read-only  

Specifies whether the browser is set for online or offline browsing (in Internet Explorer's File menu). Pages may wish to invoke live server actions when they load in online mode, but avoid these calls when in offline mode. Use this Boolean property to build such conditional statements.

 
Example
 
if (navigator.onLine) {
    document.write("<applet ...>");
    ...
}
 
Value

Boolean value: true | false.

 
Default

true


1302,Nickname,Homepage or email,Comments here,Add comment