Easy Tutorial
❮ Prop Cssnumber Misc Parsehtml ❯

jQuery event.timeStamp Property

jQuery Event Methods

Example

Returns the number of milliseconds between the first mouse button press and the last mouse button release:

$("button").click(function(event){
    $("span").text(event.timeStamp);
});

Definition and Usage

The event.timeStamp property returns the number of milliseconds between the first mouse button press and the last mouse button release.


Syntax

Parameter Description
event Required. The event parameter comes from the event binding function.

More Examples

Display the number of milliseconds since the last click event


jQuery Event Methods

❮ Prop Cssnumber Misc Parsehtml ❯