html 事件(Event)

Dynamic HTML allows to create really interactive web-pages. It becomes possible using events in HTML. HTML can process events from keyboard and mouse, and also some specific events, for example, occurring where form's data was changed. For processing of events data you may use JavaScript or VBScript.

All HTML events are listed in table below.

List of keyboard events
onkeydownOccurs when a key is pressed
onkeypressOccurs when the key is pressed and released
onkeyupOccurs when the key is released
onhelpOccurs when the F1 key if pressed
List of mouse events
onmousedownOccurs where mouse button is pressed.
onmousemoveOccurs where mouse points moves above an element.
onmouseupOccurs where mouse button is released.
onmouseoutOccurs when mouse pointer moves out of an element
onclickOccurs on a mouse click
ondblclickOccurs on a mouse double click
List of focus events
onfocusOccurs where element get a focus
onblurOccurs where element lost a focus
List of other tag-specific events
onabortOccurs if loading of picture is aborted. this event occurs only in <img> tag.
onerrorOccurs on error of loading picture (for example, if file not found). this event occurs only in <img> tag.
onchangeOccurs where content of object is changes. Occurs in checkboxes, radioboxes, passwordboxes, textboxes.
onloadOccurs where page loading is complete. Uses in <body> tag.
onselectOccurs where a fragment of text was selected. Uses in text <input> elements: text, password, textarea.
onsubmitOccurs before form data will submitted.

 

From: http://www.tufat.com/html_tutorials/HTMLEvents.php

转载于:https://www.cnblogs.com/xlmeng1988/archive/2013/02/20/2918948.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值