JavaScript Event Handlers

Events are actions that the user preforms while visiting your page. Submitting a form and moving a mouse over an image are two examples of events. JavaScript deals with events using commands called event handlers. An action by the user on the page triggers an event handler in your script. Some common JavaScript event handlers are listed in the table below.

The object finished loading

Event What it handles
onabort The user aborted loading the page
onblur The user laft the object
onchange The user changed the object
onclick The user clicked an object
onerror The script encountered an error
onfocus The user made an object active
onload
onmouseover The cursor moved over an object
onmouseout The cursor moved off an object
onselect The user selected the contents of an object
onsubmit The user submitted a form
onunload The user left the page
Author: Yakima
关于作者:楠溪江人,出生于1991年,目前坐标上海。读书时代跳过级、保过送,工作后转过行。2013年本科毕业于北药。看书、码字、敲代码、打羽毛球是我花时间的爱好。曾在某上市药企任国际药品注册岗,现在某高新企业任前端管理岗。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据