is it possible to send two messages with 1 postMessage() from a worker.js? and us the two messages in two different places.
etc
w.onmessage = function (event) {
document.getElementById(event.message 1 here).innerHTML=event.message 2 here;
};
is it possible to send two messages with 1 postMessage() from a worker.js? and us the two messages in two different places.
etc
w.onmessage = function (event) {
document.getElementById(event.message 1 here).innerHTML=event.message 2 here;
};
Copyright © 2021 Jogjafile Inc.
Actually postMessage can post not only String, but any Object, e.g.
And in your worker: