![]() |
Now, let's create our web worker in an external JavaScript. Here, we create a script that counts. The script is stored in the "script.js" file: |
var i = 0;
function timedCount() { i = i + 1; postMessage(i); setTimeout("timedCount()",500);
}
timedCount();
Category
: |
Web Tutorial |
Sub Category
: |
HTML Web Workers API |
Uploaded by
: |
Admin |
Read Article https://horje.com/learn/1434/reference