
Document
JavaScript Pocket Reference
|
65
valueOf()
Returns the millisecond representation of the date, exactly as
getTime() does. JS 1.1; ECMA v1.
Static Functions
In addition to the previously listed instance methods, the Date
object defines two static methods. These methods are invoked
through the
Date() constructor itself, not through individual Date
objects:
Date.parse(date)
Parses a string representation of a date and time and returns
the internal millisecond representation of that date.
Date.UTC(yr, mon, day, hr, min, sec, ms)
Returns the millisecond representation of the specified UTC
date and time.
Document
an HTML document
Client-side JavaScript 1.0; DOM Level 1
Inherits From: Node (in DOM Level 1)
Synopsis
window.document
document
Description
The Document object represents an HTML document and is one
of the most important objects in client-side JavaScript. It was
introduced in JavaScript 1.0, and a number of methods and prop-
erties were added in JavaScript 1.1. Netscape and Internet
Explorer each add non-standard methods and properties to the
Document object, and the W3C DOM standardizes additional
properties and methods.
Common Properties
All implementations of the Document object support the
following properties. This list is followed by separate lists of prop-
erties defined by the W3C DOM Document object and by the IE 4
and Netscape 4 Document objects.