Mega Code Archive
Categories
/
JavaScript Tutorial
/
Event
Event type
The type property refers to the type of event that occurred. The value assigned to type is a string representing the name of the event.
Using the type property for the event object
This page demonstrates a few different events. Upon events occurring, a message will be displayed in the textarea indicating which event occurred.
Dummy text area.
Click mouse in text field.
Message output: