timeStamp Event Property
Example
Get the number of milliseconds since this document was loaded:
var n = event.timeStamp;
Try it Yourself »
Definition and Usage
The timeStamp event property returns the number of milliseconds from the document was finished loading until the specific event was created.
Not all systems provide this information, therefore, timeStamp may be not available for all systems/events.
Browser Support
The numbers in the table specify the first browser version that fully supports the property.
Property | |||||
---|---|---|---|---|---|
timeStamp | Yes | 9.0 | Yes | Yes | Yes |
Syntax
event.timeStamp
Technical Details
Return Value: | A Number, representing the number of milliseconds from the document was loaded until the event was created. |
---|---|
DOM Version: | DOM Level 2 Events |