You are developing a web application that can function when users are not connected to the Internet. You need to check the Internet connectivity status of a user’s browser. Which method should you use?
You are developing a web application that can function when users are not connected to the Internet. You need to check the Internet connectivity status of a user’s browser. Which method should you use?
None of them is correct.
Correct is: navigator.onLine
Is D
navigator.onLine
http://www.w3schools.com/jsref/prop_nav_online.asp
The correct answer is D!
navigator.online or navigator.onLine, it’s the same.
M is right!
Poorly written question or Microsoft is being very particular with their wording.
JavaScript is case sensitive.
navigator.isOnline = undefined (no such property)
navigator.online = undefined (case is incorrect)
navigator.onLine = true (if indeed it is online)
navigator.online not mentioned in either ‘exam ref’ or ‘training guide’. therefore it cannot be part of the exam.
I am agree with M(ans:D)
Answer D is correct
http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_nav_online
D is incorrect. navigator.online different from navigator.onLine.