一、Windows事件:
| Attribute |
Value |
Description |
| onload |
script |
Script to be run when a document loads |
| onunload |
script |
Script to be run when a document unloads |
二、表单事件:
| Attribute |
Value |
Description |
| onchange |
script |
Script to be run when the element changes |
| onsubmit |
script |
Script to be run when the form is submitted |
| onreset |
script |
Script to be run when the form is reset |
| onselect |
script |
Script to be run when the element is selected |
| onblur |
script |
Script to be run when the element loses focus |
| onfocus |
三、键盘事件:
| Attribute |
Value |
Description |
| onkeydown |
script |
What to do when key is pressed |
| onkeypress |
script |
What to do when key is pressed and released |
| onkeyup |
script |
What to do when key is released |
四、鼠标事件:
| Attribute |
Value |
Description |
| onclick |
script |
What to do on a mouse click |
| ondblclick |
script |
What to do on a mouse double-click |
| onmousedown |
script |
What to do when mouse button is pressed |
| onmousemove |
script |
What to do when mouse pointer moves |
| onmouseout |
script |
What to do when mouse pointer moves out of an element |
| onmouseover |
script |
What to do when mouse pointer moves over an element |
| onmouseup |
script |
What to do when mouse button is released |
-------------------------------------------------------------
生活就像打牌,不是要抓一手好牌,而是要尽力打好一手烂牌。
posted on 2008-06-23 22:24
Paul Lin 阅读(326)
评论(0) 编辑 收藏 所属分类:
Web基础