Javascript Reference
Categories: navigator

javascript navigator onLine

@March 15, 2008, 1:22 a.m.
onLineFirefox/Netscape/NN n/a IE 4 Chrome/Safari/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

Hello gakaa.com webmaster, Well done!
Tomoko Boulger - 1 weeks
coursework plagiarism
<a href=https://brainycoursework.com>custom coursework writing</a>
coursework writing uk
InessaEtPi - 2 years
hire someone to write my essay
<a href=https://buytopessays.com>custom law essay</a>
write my essay canada
PennyEtPi - 2 years

Powered by Linode.