Skip to main content
Remove blasphemous link
Source Link
katspaugh
  • 18k
  • 12
  • 69
  • 107

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 http://www.w3schools.com/html5/html5_webworkers.asp it is given that since webworkers are external javascript files, they cannot access the document object, window objecobject, parent object.

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 http://www.w3schools.com/html5/html5_webworkers.asp it is given that since webworkers are external javascript files, they cannot access the document object, window objec, parent object.

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.

deleted 169 characters in body
Source Link
Yoshi
  • 54.8k
  • 14
  • 93
  • 108

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 Because in w3schools http://www.w3schools.com/html5/html5_webworkers.asp it is given that since webworkers are external javascript files, they cannot access the document object, window objec, parent object.

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 http://www.w3schools.com/html5/html5_webworkers.asp it is given that since webworkers are external javascript files, they cannot access the document object, window objec, parent object.

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 http://www.w3schools.com/html5/html5_webworkers.asp it is given that since webworkers are external javascript files, they cannot access the document object, window objec, parent object.

Source Link
Ashwin
  • 13.7k
  • 32
  • 131
  • 211

javascript and webworker

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 http://www.w3schools.com/html5/html5_webworkers.asp it is given that since webworkers are external javascript files, they cannot access the document object, window objec, parent object.