timeStamp property (event)
Returns the time in milliseconds when the current event occurred.
In Firefox, the returned time is relative to the time when the client's computer started up. In Opera, the value of the timeStamp property is always 0. In Google Chrome, Safari and Internet Explorer, the returned time is relative to midnight 01 January, 1970 UTC.
The timeStamp property is supported in Internet Explorer from version 9. For a cross-browser solution, use the Date object instead.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Integer that represents the number of milliseconds.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the timeStamp property:
Did you find this example helpful?
User Contributed Comments