<html>
<body>
<h1>Event timeStamp</h1>
<p>Click the button to get the number of milliseconds from this document was loaded until the button was clicked.</p>
<button onclick="myFunction(event)">Click me!</button>
<p>Time since this document was loaded: <span id="demo"></span></p>
<script>
function myFunction(event) {
var n = event.timeStamp;
document.getElementById("demo").innerHTML = n;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=try_dom_event_timestamp by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:03:02 GMT -->
</html>