Execute a JavaScript when the browser changes from working offine to working online.
<body ononline="myFunction()">