0 votes
in JavaScript by
How do you manipulate DOM using a service worker in javascript?

1 Answer

0 votes
by

Service worker can't access the DOM directly. But it can communicate with the pages it controls by responding to messages sent via the postMessage interface, and those pages can manipulate the DOM.

...