Advertisement
728x90
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.
Advertisement
Responsive Ad
🎯 Practice NowRelated Challenge
JavaScript Coding Exercise 35
Test your knowledge with this interactive coding challenge.
Start CodingAdvertisement
728x90
33of476