This is a demo of the new HTML5 online and offline events action
 
Now try disconnecting yourself from / connecting yourself to the internet and watching the above change :)