Event refers to the actions performed by the site visitor during their interactivity with the website (or webpage).There can be various types of events like:
- User clicks on the button.
- User moves mouse pointer over an image.
- User pressed any key from keyboard, etc.
There are lot of events in jQuery such as bind(), blur(), focus(), event.type, event.timeStamp property ,change(), click(), dblclick(), hover(), keypress() etc.
jQuery | event.timeStamp Property with Example
It is an inbuilt property in jQuery which is used to measure difference in milliseconds between the time of event created by the browser and January 1, 1970.
It does not accept any parameter because it is a property not a function.
This returns the number of milliseconds since January 1, 1970, when the event is triggered.
Before clicking on the paragraph-
After clicking on the paragraph-
Here’s more to read…
#jQuery #Events #Methods #Property #programming #Probyto #Probyto AI
Subscribe and follow us for latest news in Data Science and Machine learning and stay updated!