X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

timeStamp Event Property

Event Object Reference Event Object

Example

Get the number of milliseconds since midnight of January 1, 1970:

var n = event.timeStamp;

Try it yourself »


Definition and Usage

The timeStamp event property returns the number of milliseconds since midnight of January 1, 1970, when the event occured.

It can be used as a time stamp of when the event was triggered.

Not all systems provide this information, therefore, timeStamp may be not available for all systems/events.


Browser Support

The numbers in the table specify the first browser version that fully supports the property.

Property
timeStamp Yes 9.0 Yes Yes Yes


Syntax

event.timeStamp

Technical Details

Return Value: A Number, representing the number of milliseconds since midnight of January 1, 1970
DOM Version: DOM Level 2 Events


Event Object Reference Event Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook