I have a data widget and each time the widget is clicked the page is refreshed. When I'm offline I want to display a nowifi image above the data image for 3 seconds.
I have onerror="wifioff()"
function in the data image.
How can I show the nowifi image for a few seconds above the data image.