Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

timeStamp property

Gets the time, in milliseconds, when an event occurred.

Document Object Model (DOM) Level 3 Events Specification, Section 4.1Internet Explorer 9



HRESULT value = object.get_timeStamp(unsigned long* p);

Property values

Type: unsigned long

The time of the event, in milliseconds, since midnight, January 1, 1970, Coordinated Universal Time (UTC).

Standards information


The following event handler displays the event time by using the current locale settings.

function eventHandler(evt) {
    var dt = new Date(evt.timeStamp);
window.onload = eventHandler; 



Community Additions

© 2015 Microsoft