事件 |
描述 |
onactivate |
當(dāng)對(duì)象設(shè)置為活動(dòng)元素時(shí)觸發(fā)。 |
onbeforeactivate |
對(duì)象要被設(shè)置為當(dāng)前元素前立即觸發(fā)。 |
onbeforecut |
當(dāng)選中區(qū)從文檔中刪除之前在源對(duì)象觸發(fā)。 |
onbeforedeactivate |
在 activeElement 從當(dāng)前對(duì)象變?yōu)楦肝臋n其它對(duì)象之前立即觸發(fā)。 |
onbeforeeditfocus |
在包含于可編輯元素內(nèi)的對(duì)象進(jìn)入用戶(hù)界面激活狀態(tài)前或可編輯容器變成控件選中區(qū)前觸發(fā)。 |
onbeforepaste |
在選中區(qū)從系統(tǒng)剪貼板粘貼到文檔前在目標(biāo)對(duì)象上觸發(fā)。 |
onclick |
在用戶(hù)用鼠標(biāo)左鍵單擊對(duì)象時(shí)觸發(fā)。 |
oncontextmenu |
在用戶(hù)使用鼠標(biāo)右鍵單擊客戶(hù)區(qū)打開(kāi)上下文菜單時(shí)觸發(fā)。 |
oncontrolselect |
當(dāng)用戶(hù)將要對(duì)該對(duì)象制作一個(gè)控件選中區(qū)時(shí)觸發(fā)。 |
oncut |
當(dāng)對(duì)象或選中區(qū)從文檔中刪除并添加到系統(tǒng)剪貼板上時(shí)在源元素上觸發(fā)。 |
ondblclick |
當(dāng)用戶(hù)雙擊對(duì)象時(shí)觸發(fā)。 |
ondeactivate |
當(dāng) activeElement 從當(dāng)前對(duì)象變?yōu)楦肝臋n其它對(duì)象時(shí)觸發(fā)。 |
ondrag |
當(dāng)進(jìn)行拖曳操作時(shí)在源對(duì)象上持續(xù)觸發(fā)。 |
ondragend |
當(dāng)用戶(hù)在拖曳操作結(jié)束后釋放鼠標(biāo)時(shí)在源對(duì)象上觸發(fā)。 |
ondragenter |
當(dāng)用戶(hù)拖曳對(duì)象到一個(gè)合法拖曳目標(biāo)時(shí)在目標(biāo)元素上觸發(fā)。 |
ondragleave |
當(dāng)用戶(hù)在拖曳操作過(guò)程中將鼠標(biāo)移出合法拖曳目標(biāo)時(shí)在目標(biāo)對(duì)象上觸發(fā)。 |
ondragover |
當(dāng)用戶(hù)拖曳對(duì)象劃過(guò)合法拖曳目標(biāo)時(shí)持續(xù)在目標(biāo)元素上觸發(fā)。 |
ondragstart |
當(dāng)用戶(hù)開(kāi)始拖曳文本選中區(qū)或選中對(duì)象時(shí)在源對(duì)象上觸發(fā)。 |
ondrop |
當(dāng)鼠標(biāo)按鈕在拖曳操作過(guò)程中釋放時(shí)在目標(biāo)對(duì)象上觸發(fā)。 |
onfocusin |
當(dāng)元素將要被設(shè)置為焦點(diǎn)之前觸發(fā)。 |
onfocusout |
在移動(dòng)焦點(diǎn)到其它元素之后立即觸發(fā)于當(dāng)前擁有焦點(diǎn)的元素上觸發(fā)。 |
onhelp |
當(dāng)用戶(hù)在瀏覽器為當(dāng)前窗口時(shí)按 F1 鍵時(shí)觸發(fā)。 |
onkeydown |
當(dāng)用戶(hù)按下鍵盤(pán)按鍵時(shí)觸發(fā)。 |
onkeypress |
當(dāng)用戶(hù)按下字面鍵時(shí)觸發(fā)。 |
onkeyup |
當(dāng)用戶(hù)釋放鍵盤(pán)按鍵時(shí)觸發(fā)。 |
onmousedown |
當(dāng)用戶(hù)用任何鼠標(biāo)按鈕單擊對(duì)象時(shí)觸發(fā)。 |
onmousemove |
當(dāng)用戶(hù)將鼠標(biāo)劃過(guò)對(duì)象時(shí)觸發(fā)。 |
onmouseout |
當(dāng)用戶(hù)將鼠標(biāo)指針移出對(duì)象邊界時(shí)觸發(fā)。 |
onmouseover |
當(dāng)用戶(hù)將鼠標(biāo)指針移動(dòng)到對(duì)象內(nèi)時(shí)觸發(fā)。 |
onmouseup |
當(dāng)用戶(hù)在鼠標(biāo)位于對(duì)象之上時(shí)釋放鼠標(biāo)按鈕時(shí)觸發(fā)。 |
onmousewheel |
當(dāng)鼠標(biāo)滾輪按鈕旋轉(zhuǎn)時(shí)觸發(fā)。 |
onmove |
當(dāng)對(duì)象移動(dòng)時(shí)觸發(fā)。 |
onmoveend |
當(dāng)對(duì)象停止移動(dòng)時(shí)觸發(fā)。 |
onmovestart |
當(dāng)對(duì)象開(kāi)始移動(dòng)時(shí)觸發(fā)。 |
onpaste |
當(dāng)用戶(hù)粘貼數(shù)據(jù)以便從系統(tǒng)剪貼板向文檔傳送數(shù)據(jù)時(shí)在目標(biāo)對(duì)象上觸發(fā)。 |
onpropertychange |
當(dāng)在對(duì)象上發(fā)生對(duì)象上發(fā)生屬性更改時(shí)觸發(fā)。 |
onreadystatechange |
當(dāng)對(duì)象狀態(tài)變更時(shí)觸發(fā)。 |
onresizeend |
當(dāng)用戶(hù)更改完控件選中區(qū)中對(duì)象的尺寸時(shí)觸發(fā)。 |
onresizestart |
當(dāng)用戶(hù)開(kāi)始更改控件選中區(qū)中對(duì)象的尺寸時(shí)觸發(fā)。 |
onselectionchange |
當(dāng)文檔的選中狀態(tài)改變時(shí)觸發(fā)。 |
onstop |
當(dāng)用戶(hù)單擊停止按鈕或離開(kāi) Web 頁(yè)面時(shí)觸發(fā)。 |