X
Tap here to go to the mobile version of the site.

ஆதரவு மன்றம்

I am using navigator.OnLine property to check the client connection,for some browsers it is working(version 69.0/70.9.b) not all.Why ?

  • 1 reply
  • 1 இந்த பிரச்சனை உள்ளது
  • Last reply by TyDraniu
பதிவிடப்பட்டது

Hi , I am using navigator.OnLine property to check the internet connection,for some browsers it is working(version 69.0/60.0) and for some it is not (version 70.9.b/69.0.1) . Are we going to support this property in all version in near future ?? The property wont return the consistent value : navigator.OnLine Please check and assist us to resolve this issue. Thank you in advance.

Regards, Lalit

Hi , I am using navigator.OnLine property to check the internet connection,for some browsers it is working(version 69.0/60.0) and for some it is not (version 70.9.b/69.0.1) . Are we going to support this property in all version in near future ?? The property wont return the consistent value : navigator.OnLine Please check and assist us to resolve this issue. Thank you in advance. Regards, Lalit
மேற்கோள்

Additional System Details

நிறுவப்பட்ட நிரல்கள்

NA

பயன்பாடு

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36

கூடுதல் தகவல்

TyDraniu
  • Top 25 Contributor
322 தீர்வுகள் 1845 பதில்கள்
பதிவிடப்பட்டது

AFAIK in Firefox and Internet Explorer, this property doesn't check the present connection state, it only check if browser is in the offline mode.

After switching the browser to offline mode (FIle -> Work offline) it has a false value, all other conditions return a true value;

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 true. So while you can assume that the browser is offline when it returns a false value, you cannot assume that a true value necessarily means that the browser can access the internet.

AFAIK in Firefox and Internet Explorer, this property doesn't check the present connection state, it only check if browser is in the offline mode. After switching the browser to offline mode (FIle -> Work offline) it has a false value, all other conditions return a true value; 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 true. So while you can assume that the browser is offline when it returns a false value, you cannot assume that a true value necessarily means that the browser can access the internet.

TyDraniu மூலமாக திருத்தப்பட்டது

இது உங்களுக்கு பயனுள்ளதாக இருந்ததா?
மேற்கோள்
கேள்வி எழுப்பு

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.