javascript event timeStamp

timeStampNN 6 IE n/a DOM 2

Read-only

Provides an integer signifying a milliseconds value you can use as a relative indicator of when an event occurred. Although the W3C DOM suggests the value should be the time since 1 January 1970 (the Java and JavaScript epoch), you cannot rely on that value. But you can compare the timeStamp property value for two events to derive the elapsed time between events.

 
Example
 
var clickTime = evt.timeStamp;
 
Value

Integer.

 
Default

Current timestamp.


790,Nickname,Homepage or email,Comments here,Add comment