XML DOM timeStamp event property

Definition and Usage

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

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

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 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
ပြီးခဲ့သော စက္ကူသမား အချိန် (IE ဘာသာပြန်ကြားသည် ကူညီပါသည်) ကို ပြန်လည်ပေးသည်。