timeStamp Event PropertyEvent Object
Definition and Usage
The timeStamp event property returns the number of in milliseconds since midnight of January 1, 1970.
It can be used as a time stamp of when the event was triggered.
Not all systems provide this information, therefore, timeStamp may be not available for all systems/events.
The following example gets the timestamp from the system start:
<p onclick="myFunction(event)">Click this paragraph. An alert
box will alert the timestamp.</p>
Try it yourself »
Thank You For Helping Us!
Your message has been sent to W3Schools.