W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2005

[whatwg] isBrowserOnline vs navigator.onLine

From: Brad Neuberg <bradneuberg@yahoo.com>
Date: Sun, 9 Oct 2005 22:22:54 -0700 (PDT)
Message-ID: <20051010052254.12742.qmail@web60721.mail.yahoo.com>
I just tested navigator.onLine in Firefox and it
returned undefined. I used
javascript:alert(navigator.onLine). It works in IE. Is
it supposed to work in Firefox? How does a user move
into offline mode in that browser?

Best,
  Brad

--- Dave Hyatt <hyatt at apple.com> wrote:

> WebKit now supports this too (not released yet, but
> in our tip of  
> tree it does).
> 
> dave
> 
> On Oct 9, 2005, at 8:40 PM, Erik Arvidsson wrote:
> 
> > Both IE and Mozilla supports navigator.onLine to
> detect whether the  
> > user agent is in on line or off line mode. Would
> it not be better  
> > to use this existing solution instead of adding a
> new attribute to  
> > the Window interface?
> >
> > -- 
> > erik
> >
> 
> 
Received on Sunday, 9 October 2005 22:22:54 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:43 UTC