DHTML Events

来源:互联网 发布:js的padLeft是什么 编辑:程序博客网 时间:2024/05/19 15:24

http://msdn.microsoft.com/en-us/library/ms533051%28v=VS.85%29.aspx

适用于IE


DHTML Events

This section contains the events exposed by the Dynamic HTML (DHTML) Object Model.

Events

onabort

Fires when the user aborts the download.

onactivate

Fires when the object is set as the active element.

onafterprint

Fires on the object immediately after its associated document prints or previews for printing.

onafterupdate

Fires on a databound object after successfully updating the associated data in the data source object.

onbeforeactivate

Fires immediately before the object is set as the active element.

onbeforecopy

Fires on the source object before the selection is copied to the system clipboard.

onbeforecut

Fires on the source object before the selection is deleted from the document.

onbeforedeactivate

Fires immediately before the activeElement is changed from the current object to another object in the parent document.

onbeforeeditfocus

Fires before an object contained in an editable element enters a UI-activated state or when an editable container object is control selected.

onbeforepaste

Fires on the target object before the selection is pasted from the system clipboard to the document.

onbeforeprint

Fires on the object before its associated document prints or previews for printing.

onbeforeunload

Fires prior to a page being unloaded.

onbeforeupdate

Fires on a databound object before updating the associated data in the data source object.

onblur

Fires when the object loses the input focus.

onbounce

Fires when the behavior property of the marquee object is set to "alternate" and the contents of the marquee reach one side of the window.

oncanplay

Occurs when playback is possible, but would require further buffering.

oncanplaythrough

Occurs when playback to end is possible without requiring a stop for further buffering.

oncellchange

Fires when data changes in the data provider.

onchange

Fires when the contents of the object or selection have changed.

onclick

Fires when the user clicks the left mouse button on the object.

oncontextmenu

Fires when the user clicks the right mouse button in the client area, opening the context menu.

oncontrolselect

Fires when the user is about to make a control selection of the object.

oncopy

Fires on the source element when the user copies the object or selection, adding it to the system clipboard.

oncut

Fires on the source element when the object or selection is removed from the document and added to the system clipboard.

ondataavailable

Fires periodically as data arrives from data source objects that asynchronously transmit their data.

ondatasetchanged

Fires when the data set exposed by a data source object changes.

ondatasetcomplete

Fires to indicate that all data is available from the data source object.

ondblclick

Fires when the user double-clicks the object.

ondeactivate

Fires when the activeElement is changed from the current object to another object in the parent document.

ondrag

Fires on the source object continuously during a drag operation.

ondragend

Fires on the source object when the user releases the mouse at the close of a drag operation.

ondragenter

Fires on the target element when the user drags the object to a valid drop target.

ondragleave

Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.

ondragover

Fires on the target element continuously while the user drags the object over a valid drop target.

ondragstart

Fires on the source object when the user starts to drag a text selection or selected object.

ondrop

Fires on the target object when the mouse button is released during a drag-and-drop operation.

ondurationchange

Occurs when the duration attribute is updated.

onemptied

Occurs when the media element is reset to its initial state.

onended

Occurs when the end of playback is reached.

onerror

Raised when there is an error that prevents the completion of the cross-domain request.

onerror

Fires when an error occurs during object loading.

onerrorupdate

Fires on a databound object when an error occurs while updating the associated data in the data source object.

onfilterchange

Fires when a visual filter changes state or completes a transition.

onfinish

Fires when marquee looping is complete.

onfocus

Fires when the object receives focus.

onfocusin

Fires for an element just prior to setting focus on that element.

onfocusout

Fires for the current element with focus immediately after moving focus to another element.

onhashchange

Raised when there are changes to the portion of aURL that follows the number sign (#).

onhelp

Fires when the user presses the F1 key while the browser is the active window.

onkeydown

Fires when the user presses a key.

onkeypress

Fires when the user presses an alphanumeric key.

onkeyup

Fires when the user releases a key.

onlayoutcomplete

Fires when the print or print preview layout process finishes filling the current LayoutRect object with content from the source document.

onload

Raised when the object has been completely received from the server.

onload

Fires immediately after the browser loads the object.

onloadeddata

Occurs when media data is loaded at the current playback position.

onloadedmetadata

Occurs when the duration and dimensions of the media have been determined.

onloadstart

Occurs when Windows Internet Explorer begins looking for media data.

onlosecapture

Fires when the object loses the mouse capture.

onmessage

Fires when the user sends a cross-document message with postMessage.

onmousedown

Fires when the user clicks the object with either mouse button.

onmouseenter

Fires when the user moves the mouse pointer into the object.

onmouseleave

Fires when the user moves the mouse pointer outside the boundaries of the object.

onmousemove

Fires when the user moves the mouse over the object.

onmouseout

Fires when the user moves the mouse pointer outside the boundaries of the object.

onmouseover

Fires when the user moves the mouse pointer into the object.

onmouseup

Fires when the user releases a mouse button while the mouse is over the object.

onmousewheel

Fires when the wheel button is rotated.

onmove

Fires when the object moves.

onmoveend

Fires when the object stops moving.

onmovestart

Fires when the object starts to move.

onmssitemodeinstalled

Occurs when a pinned site shortcut is successfully added to the Start menu.

onmssitemodejumplistitemremoved

Occurs when an item is removed from a Jump List.

onmsthumbnailclick

Occurs when a user clicks a button in a Thumbnail Toolbar.

onoffline

Raised when Internet Explorer is working offline.

ononline

Raised when Internet Explorer is working online.

onpage

Not implemented.

onpaste

Fires on the target object when the user pastes data, transferring the data from the system clipboard to the document.

onpause

Occurs when playback is paused.

onplay

Occurs when the play method is requested.

onplaying

Occurs when the audio or video has started playing.

onprogress

Occurs to indicate progress while downloading media data.

onprogress

Raised when the browser starts receiving data from the server.

onpropertychange

Fires when a property changes on the object.

onratechange

Occurs when the playback rate is increased or decreased.

onreadystatechange

Sets or retrieves the event handler for asynchronous requests.

onreadystatechange

Fires when the state of the object has changed.

onreset

Fires when the user resets a form.

onresize

Fires when the size of the object is about to change.

onresizeend

Fires when the user finishes changing the dimensions of the object in a control selection.

onresizestart

Fires when the user begins to change the dimensions of the object in a control selection.

onrowenter

Fires to indicate that the current row has changed in the data source and new data values are available on the object.

onrowexit

Fires just before the data source control changes the current row in the object.

onrowsdelete

Fires when rows are about to be deleted from the recordset.

onrowsinserted

Fires just after new rows are inserted in the current recordset.

onscroll

Fires when the user repositions the scroll box in the scroll bar on the object.

onseeked

Occurs when the seek operation ends.

onseeking

Occurs when the current playback position is moved.

onselect

Fires when the current selection changes.

onselectionchange

Fires when the selection state of a document changes.

onselectstart

Fires when the object is being selected.

onstalled

Occurs when the download has stopped.

onstart

Fires at the beginning of every loop of the marquee object.

onstop

Fires when the user clicks the Stop button or leaves the Web page.

onstorage

Fires when a DOM Storage area is updated.

onstoragecommit

Fires when a local DOM Storage area is written to disk.

onsubmit

Fires when a FORM is about to be submitted.

onsuspend

Occurs if the load operation has been intentionally halted.

ontimeout

Raised when there is an error that prevents the completion of the request.

ontimeupdate

Occurs to indicate the current playback position.

onunload

Fires immediately before the object is unloaded.

onvolumechange

Occurs when the volume is changed, or playback is muted or unmuted.

onwaiting

Occurs when playback stops because the next frame of a video resource is not available.

原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 驾驶证过期了5天怎么办 过了审车时间怎么办 骑车没带行驶证怎么办 轿车行驶证丢了怎么办 车子没年检被扣怎么办 上海车辆年检过期了怎么办 行驶证过期十天怎么办 行驶证盖章满了怎么办 驾照c证扣12分怎么办 两年小车忘年审怎么办 4年车检过期了怎么办 车检过期了1周怎么办 超过检车几天了怎么办 驾驶证扣两个6分怎么办 行驶证检验有效期过期怎么办 驾驶证被扣26分怎么办 c1驾驶证扣26分怎么办 驾驶证被扣6分后怎么办 c1驾照年审过期一天怎么办 审驾照时间过了怎么办 b2驾驶证扣了分怎么办 a2驾照逾期未审怎么办 中学生只想打游戏不肯学习怎么办 汽车4年未年检怎么办 2年没有验车怎么办 驾驶证过期2年半怎么办 审车逾期一个月怎么办 摩托车驾驶证年审过期一个月怎么办 摩托车驾驶证记满12分怎么办 b2驾驶证扣2分该怎么办 b2扣6分以上怎么办 审驾照晚了3天怎么办 考驾驶证3年到期怎么办 学习驾驶证明过期了怎么办 a2扣了12分怎么办 驾照a2扣6分了怎么办 a2本扣9分怎么办 驾驶证分扣3分怎么办? 异地换驾驶证没有居住证怎么办 b2开c1车扣分怎么办 驾照五次没考过怎么办