Here is another impressive HTML5 example, while its not exactly advanced it does show demonstrate the raw power of HTML 5. This could also be used as a Windows Vista desktop widget or even for Windows 7 once it is released. This code could be changed to check the status of your domains. (Please test this out by disabling your internet connect either unplug your network cable, or go into “Work Offline” with your browser)


Please click “Read More” to see the full HTML5 code.

To render what you see above you will need the following code:
[stextbox id="alert" caption="Status monitoring" color="ffffff" ccolor="ffffff"]Network monitoring:

<code<<!DOCTYPE html></code>
<html lang=”en” xmlns=””>
<meta http-equiv=”Content-Type” content=”text/html;charset=utf-8″ />
<title>HTML5 Demo: online connectivity monitoring</title>
body {
font: normal 16px/20px Helvetica, sans-serif;
background: #F4F4F4;
margin: 0;
margin-top: 40px;
padding: 0;

section, header, footer {
display: block;

#wrapper {
width: 550px;
margin: 0 auto;
background: #fff;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-top: 1px solid #fff;
padding-bottom: 76px;

h1 {
padding-top: 10px;

h2 {
font-size: 100%;
font-style: italic;

article > p,
article > h3,
article > code,
footer a,
footer p {
margin: 20px;

footer > * {
margin: 20px;
color: #999;

#status {
padding: 5px;
color: #fff;
background: #ccc;

#status.offline {
background: #c00;
} {
background: #0c0;

// For discussion and comments, see:
(function(){if(!/*@cc_on!@*/0)return;var e = “abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header,mark,menu,meter,nav,output,progress,section,time,video”.split(‘,’),i=e.length;while (i–){document.createElement(e[i])}})()
function online() {
var status = document.querySelector(‘#status’);
if (status) {
status.className = navigator.onLine ? ‘online’ : ‘offline’;
status.innerHTML = navigator.onLine ? ‘online’ : ‘offline’;

document.addEventListener(‘DOMContentLoaded’, online, true);
window.addEventListener(‘online’, online, true);
window.addEventListener(‘offline’, online, true);

<section id=”wrapper”>

<h1>Status Monitoring</h1>
<p>Current network status: <span id=”status”>checking…</span></p>
<footer><a href=””>HTML5 Tutorial</a></footer>

var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript src='” + gaJsHost + “’ type=’text/javascript’%3E%3C/script%3E”));
try {
var pageTracker = _gat._getTracker(“UA-1656750-18”);
} catch(err) {}</script>