Get the number of milliseconds since this document was loaded:
var n = event.timeStamp;
Try it Yourself »
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.
event.timeStamp
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 |
event.timeStamp
is a DOM Level 2 (2001) feature.
It is fully supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | 9-11 |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!