Use the HTML DOM to assign an "ononline" and "onoffline" event to a body element.
NOTE: There will only be an "output" from this example when the browser shifts from online to offline.