JS Coding Questions Logo
JS Coding Questions
#33💼 Interview

How do you manipulate DOM using a service worker

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 Coding

Advertisement

728x90
33of476