TimeStamp event properties

timeStamp case attribute The event object

Definitions and usages

The timeStamp event property returns a timestamp. Indicates the date and time the event occurred (milliseconds from epoch).

Epoch is an event reference point. Here, it is the time when the client starts.

Not all systems provide this information, so the timeStamp property is not available for all systems/events.

Grammar

event .timeStamp

The following example provides an event stamp for the start of the system startup:

<! DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
Online tutorials for W3Cschool (w3cschool.cn)
<script>
function myFunction(e){
alert(e.timeStamp);
}
</script>
</head>
<body>

click on this paragraph. A warning box pops up with a timestamp. </p>

</body>
</html>

Try it out . . .


timeStamp case attribute The event object