XML DOM timeStamp event attribute

Definition and usage

The timeStamp event property can return a timestamp. Indicates the date and time of the event (milliseconds since epoch).

Epoch is an event reference point. Here, it is the time of client startup.

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

Syntax

event.timeStamp

Example

The following example can obtain the event timestamp since the system started:

<html>
<head>
<script type="text/javascript">
function showTimestamp(event)
  {
  var minutes = 1000*60
  x=event.timeStamp;
  alert(x/minutes)
  }
</script>
</head>
<body onmousedown="showTimestamp(event)">
<p>Click in the document. An alert 
box will alert the timestamp.</p>
</body>
</html>

TIY

timestamp event
Return the number of minutes since the system started (IE browser does not support).