HTML and CSS Reference
In-Depth Information
JavaScript Element
Description
TypedArray
A fixed-sized binary array created using the constructor
new TypedArray()
Properties
length
The number of elements in the array
Methods
set(
array
,
offset
)
Copies elements of
array
into the typed array starting with
offset
subarray(
start
,
end
)
Creates a subarray of the typed array starting with the item at
start
and ending
with the item at
end
TypeError
An
Error
object indicating that a value is of the wrong type; created using
one of the following constructors:
new TypeError()
new TypeError(
message
)
where
message
is the text of the type error message
Properties
message
The text string of the error message
name
The name of the type error
Video
An embedded video clip in a Web document
Properties
Inherits the properties of the
MediaElement
object along with the following:
audio
The audio properties of the video clip
height
The height of the video clip as it appears on the Web page
poster
The URL of the image to be displayed as a preview of the clip
videoHeight
The intrinsic height of the video clip
videoWidth
The intrinsic width of the video clip
width
The width of the video clip as it appears on the Web page
Methods
Inherits the methods of the
MediaElement
object
WebSocket
A bidirectional socket network connection created using the constructor
new WebSocket(
url
[,
protocols
])
where
url
is the URL of the network connection and
protocols
is an array
of communication protocols
Properties
bufferedAmount
The number of characters of text that have been passed to the socket but not actu-
ally sent to the page
protocol
The array of communication protocols
readyState
The current state of the connection
url
The URL of the network connection
Methods
close()
Closes the connection
send(
data
)
Sends
data
to the server at the other end of the socket connection
windowĘ
The document window
Properties
applicationCache
The cached data for the current browser window