Event in JavaScript

Advertisements

Prev Tutorial Next Tutorial

Event in JavaScript

All objects have properties and methods. In addition, some objects also have "events". Events are things that happen, usually user actions, that are associated with an object. The "event handler" is a command that is used to specify actions in response to an event. Below are some of the most common events:

EventDiscription
onLoadOccurs when a page loads in a browser
onUnloadoccurs just before the user exits a page
onMouseOveroccurs when you point to an object
onMouseOutoccurs when you point away from an object
onSubmitoccurs when you submit a form
onClickoccurs when an object is clicked

Events and Objects

Events are things that happen, actions, that are associated with an object. Below are some common events and the object they are associaated with:

EventObject
onLoadBody
onUnloadBody
onMouseOverLink, Button
onMouseOutLink, Button
onSubmitForm
onClickButton, Checkbox, Submit, Reset, Link

Prev Tutorial Next Tutorial

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet


For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements