How do I check connection type (WiFi/LAN/WWAN) using HTML5/JavaScript? April 10, 2024 by Tarik See navigator.connection (prefixed). This API exposes information about the bandwidth of the client.