HTML and CSS Reference
In-Depth Information
Accessing browser functionality
The only main browser object a Web Worker object has access to is the navigator object.
This object can be used to obtain information about the browser, such as the browser vendor
and version.
Due to the fact Web Workers are executing in a different environment from the main browser
thread they do not have access to the objects or functions created by any imported scripts.
Web Workers can however load additional JavaScript files if they require. This can be done
with the following function call:
importScripts('foo.js');
Search WWH ::




Custom Search