event.timeStampReturns: Number
Description: The difference in milliseconds between the time the browser created the event and January 1, 1970.
version added: 1.2.6event.timeStamp
event.timeStamp
value at two points in the code and noting the difference. To simply determine the current time inside an event handler, use (new Date).getTime()
instead.
Example:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
|