Code has been added to clipboard!

Working HTML Web Workers

Example
var i=0;

function timedCount() {
    i=i+1;
    postMessage(i);
    setTimeout("timedCount()", 500);
}

timedCount();