HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
Worker
A background execution thread created using the constructor
new Worker( script )
where script is the URL of an external script file
Methods
postMessage( message [, ports ])
Posts message to the thread using the communication ports ports for multiple
messages
terminate()
Stops the worker and its execution thread
WorkerGlobalScope
A worker thread that runs in a different execution environment from the
parent thread that generated it
Properties
location
The location object of the thread
navigator
The navigation object of the thread
Methods
clearInterval( id )
Clears a timed interval command within the thread identified by id
clearTimeout( id )
Clears a timed command within the thread identified by id
close()
Closes the thread
postMessage( message [, ports ])
Posts message to the thread using the communication ports ports for multiple
messages
setInterval( id [, arguments ])
Creates a timed interval command within the thread identified by id using
arguments
setInterval( id [, arguments ])
Creates a timed command within the thread identified by id using arguments
WorkerLocation
The location of the script for a worker execution thread
Properties
hash
The hash portion from the thread URL
hostname
The host name from the thread URL
href
The complete text of the thread URL
pathname
The pathname from the thread URL
port
The port from the thread URL
protocol
The protocol from the thread URL
search
The search string from the thread URL
WorkerNavigator
The browser in which the work thread executes
Properties
appName
The application name of the browser
appVersion
The version of the browser
onLine
A Boolean indicating whether the browser is online
platform
A string identifying the operating system or hardware platform
userAgent
The browser's user-agent header
XMLHttpRequest
An AJAX request object created using the constructor
new XMLHttpRequest()
Properties
readyState
The state of the request and the server's response
response
The response from the server
responseText
The text of the response from the server
responseType
The type of the response content from the server
Search WWH ::




Custom Search