
Attr
58
|
JavaScript Pocket Reference
unshift(value, ...)
Inserts the argument or arguments as new elements at the
beginning of an array, shifting existing array elements up to
make room. Returns the new length of the array. JS 1.2;
JScript 5.5; ECMA v3.
Attr
an attribute of a document element
DOM Level 1
Inherits From: Node
Properties
name
The name of the attribute. Read-only.
ownerElement
The Element object that contains this attribute. Read-only.
DOM Level 2.
specified
true
if the attribute was explicitly specified in the document
source or set by a script.
false otherwise. Read-only.
value
The value of the attribute as a string. Read/write.
See Also
Document.createAttribute(), Element.getAttributeNode(),
Element.setAttributeNode()
Boolean
a wrapper object for boolean values
Core JavaScript 1.1; JScript 2.0; ECMA v1
Constructor
new Boolean(value)
Boolean(value)
Invoked as a function, without the new operator, Boolean()
converts value to a boolean value (not a Boolean object) and
returns it. All values convert to
true except for 0, NaN, null,
undefined, and the empty string, “”. When invoked with the new