Why can't a javascript file in a WebWorker access document object, when a normal external javascript file can access the document object? Or can a WebWorker access a document object? Because in w3schools it is given that since webworkers are external javascript files, they cannot access the document object, window object, parent object.
- 6Usually, w3schools is not a reliable source. You'd better use the Mozilla Developer Network instead.Rob W– Rob W2012-02-23 10:34:22 +00:00Commented Feb 23, 2012 at 10:34
- WebWorker have access to the BOM. But for keeping them non-concurrent with the main script, which has access to the DOM, you canno't access the DOM. But why should someone even want to do this?ˈvɔlə– ˈvɔlə2014-07-30 09:19:23 +00:00Commented Jul 30, 2014 at 9:19
Add a comment |