this is the combination of php and js code, to detect if device is connected to internet or or not
To make sure the aim of this code is achieve
- Your laptop must be connected to online to test for online
- If your laptop is not connect, then it will show that you are offline