ExampleShow the timestamp for when the click event occurred for a button element:
Try it yourself » |
The timeStamp property contains the number of milliseconds since January 1 1970, for when the event is triggered.
event.timeStamp |
Parameter | Description |
---|---|
event | Required. Specifies the event to get the timestamp for. The event parameter comes from the event binding function |