NetworkInformation
Summary
Is exposed on the Navigator object, and all instances of the Navigator type are defined to also implement the NetworkInformation interface.
Properties
- connection
- The object from which connection information is accessed.
Methods
No methods.
Events
No events.
Examples
function show() {
console.log(navigator.connection.bandwidth);
}
navigator.connection.addEventListener('change', show, false);
show();
Notes
As of 25 June 2014:
- Formal work on the Network Information spec has been stopped. The specification is now a W3C Note.
- Both Chrome and Firefox have shipped Network Information under an experimental feedback channel.
Related specifications
- The Network Information API
- W3C Note