Events in the DHTML tutorial

Source: Internet
Author: User
Tags object model

The events defined by the Dynamic HTML (DHTML) object model are listed below.

Event

Onabort Triggered when a user interrupts downloading an image.
OnActivate Triggered when an object is set to the active element.
Onafterprint object is immediately triggered on the object after printing or printing a preview of the document associated with it.
onafterupdate Triggered on a data-bound object when the associated object in the data source object is successfully updated.
Onbeforeactivate object is triggered immediately before it is set to the current element.
Onbeforecopy Triggered in the source object before the central district is selected for copying to the system Clipboard.
Onbeforecut The selected Zhong District is triggered in the source object before it is deleted from the document.
Onbeforedeactivate Fires immediately before activeelement changes from the current object to another object in the parent document.
Onbeforeeditfocus Triggered before an object contained within an editable element enters the user interface activation state or when an editable container becomes a control selection.
Onbeforepaste Fires on the target object before pasting from the system Clipboard to the document in the selected area.
Onbeforeprint The object's associated document is triggered on the object before it prints or prints a preview.
onBeforeUnload Triggered before the page will be unloaded.
onbeforeupdate Triggered on a data-bound object before the associated object in the data source object is successfully updated.
Onblur Triggered when the object loses input focus.
Onbounce Triggered when the marquee object's Behavior property is set to "alternate" and the contents of the marquee reach the side of the window.
Oncellchange Triggered when data is changed in the data provider.
OnChange triggered when the contents of an object or selection change.
OnClick Triggered when the user clicks the object with the left mouse button.
OnContextMenu Triggered when a user opens a context menu using the right mouse button click.
Oncontrolselect Triggered when the user will make a control selection on the object.
Oncopy triggered on the source element when the user replicates the object or selection and adds it to the system Clipboard.
Oncut triggered on the source element when an object or selection is deleted from the document and added to the system Clipboard.
ondataavailable Fires whenever data from the data source object that asynchronously transmits data arrives.
ondatasetchanged triggered when the data source object's corresponding dataset changes.
ondatasetcomplete Triggering indicates that all data from the data source object is available.
OnDblClick triggered when the user double-clicks on an object.
OnDeactivate Triggered when activeelement changes from the current object to another object in the parent document.
Ondrag Persistent triggering on the source object when a drag operation is in progress.
Ondragend Triggered on the source object when the user releases the mouse after the drag operation finishes.
OnDragEnter Triggered on the target element when the user drags the object to a legitimate drag target.
OnDragLeave Triggered on the target object when the user moves the mouse out of the legitimate drag target during the drag operation.
OnDragOver When a user drags an object across a legitimate drag target, it continues to trigger on the target element.
Ondragstart Fires on the source object when the user starts dragging the text selection or when the object is selected.
OnDrop Triggered on the target object when the mouse button is released during the drag operation.
OnError Triggered when an error occurs during object loading.
onerrorupdate Triggered on a data-bound object when an error occurred updating the associated data in the data source object.
Onfilterchange triggered when a visual filter changes state or completes a transformation.
OnFinish triggered when the caption loop completes.
onfocus Triggered when the object gets focus.
Onfocusin Triggered before the element will be set to focus.
Onfocusout Fires immediately after the focus has been moved to the other element, triggering on the element that currently has focus.
OnHelp Triggered when the user presses the F1 key when the browser is the current window.
OnKeyDown Triggered when the user presses the keyboard key.
onkeypress Triggered when the user presses a literal key.
OnKeyUp Triggered when the user releases the keyboard key.
Onlayoutcomplete triggered when the print or Print preview layout finishes populating the current Layoutrect object with content from the source document.
OnLoad Fires immediately after the browser finishes loading the object.
Onlosecapture Triggered when the object loses mouse capture.
OnMouseDown Triggered when the user clicks an object with any mouse button.
Onmouseenter Triggered when the user moves the mouse pointer inside the object.
OnMouseLeave Triggered when the user moves the mouse pointer out of an object boundary.
OnMouseMove Triggered when the user moves the mouse over the object.
onmouseout Triggered when the user moves the mouse pointer out of an object boundary.
onmouseover Triggered when the user moves the mouse pointer inside the object.
OnMouseUp Triggered when the user releases the mouse button while the mouse is over the object.
OnMouseWheel triggered when the mouse wheel button is rotated.
OnMove Triggered when an object is moved.
Onmoveend Triggered when an object stops moving.
Onmovestart Triggered when the object begins to move.
Onpaste Fires on the target object when the user pastes data to transfer data from the system Clipboard to the document.
Onpropertychange triggered when a property change occurs on an object on an object.
onReadyStateChange Triggered when an object's state changes.
OnReset Triggered when the user resets the form.
OnResize triggered when the size of the object will change.
Onresizeend Triggered when the user changes the size of the object in the selection area of the control.
Onresizestart Triggered when the user starts to change the size of the object in the control's selected area.
onrowenter The trigger indicates that the current row has been changed in the data source and that there are new data values available on the object.
onrowexit Fires before the data source control changes the current row of the object.
Onrowsdelete Triggered when the row is to be deleted from the recordset.
onrowsinserted Triggered when a new row is inserted in the current Recordset.
Onscroll Triggered when the user scrolls the scroll bar of an object.
Onselect Triggered when the current selection changes.
Onselectionchange Triggered when the selected state of the document changes.
Onselectstart Object will be triggered when it is about to be selected.
OnStart Triggered at the beginning of each loop of the marquee object.
OnStop Triggered when the user clicks the Stop button or leaves the Web page.
OnSubmit Triggered when the form will be submitted.
OnUnload Fires immediately before the object is unloaded.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.