Latest web development tutorials

timeStamp event properties

Event Object Reference Event objects

Definition and Usage

timeStamp event attribute returns a timestamp. Indicating the date and time the event occurred (the number of milliseconds since epoch beginning).

epoch event is a reference point. Here, it is time to start the client.

Not all systems provide this information, therefore, timeStamp property not available for all systems / events are available.

grammar

event .timeStamp

Examples

Examples

The following examples available system start event start timestamp:

<! DOCTYPE html>
<Html>
<Head>
<Meta charset = "utf-8">
<Title> This tutorial (w3big.com) </ title>
<Script>
function myFunction (e) {
alert (e.timeStamp);
}
</ Script>
</ Head>
<Body>

<P onclick = "myFunction (event)"> Click this paragraph. Pop up an alert box contains timestamp. </ P>

</ Body>
</ Html>

try it"


Event Object Reference Event objects