| Below code will help us to check internet is working or not on computer you are using
< script type="text/javascript">
function checkconnection()
{
var status = navigator.onLine;
if (status)
{
alert("Internet working");
}
else
{
alert("Internet not working");
}
}
< /script>
| | |