Chris Abrams
Chris Abrams

Reputation: 42400

Can Javascript Web Workers affect the DOM?

I'm trying to figure out if I can write javascript that is within an worker to interact with the DOM.

Upvotes: 0

Views: 485

Answers (1)

Eli
Eli

Reputation: 17825

No they cannot. They can only return "messages" back to the main script, which can then interact with the DOM.

https://developer.mozilla.org/En/Using_web_workers

Upvotes: 2

Related Questions