
DOMException
JavaScript Pocket Reference
|
59
operator, the Boolean() constructor performs the same conver-
sion and wraps the result in a Boolean object.
Methods
toString()
Returns “true” or “false”, depending on the value of the
Boolean object.
valueOf()
Returns the primitive boolean value wrapped by the Boolean
object.
Comment
an HTML comment
DOM Level 1
Inherits From: Node
Properties
Comment nodes have exactly the same properties as Text nodes.
Methods
Comment nodes support all of the methods of Text nodes except
for
splitText().
See Also
Text
DOMException
signals DOM errors
DOM Level 1
Properties
code
An error code that provides some detail about what caused
the exception. Some possible values (and their meanings) for
this property are defined by the constants listed below.
Constants
The following constants define the code values that may be
encountered by when working with HTML documents. Note that