Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the Html DIV event properties

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

Today, I will talk to you about the attributes of Html DIV events, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

Do you know the use of Html DIV event attributes? each property has its own characteristics and usage. Let's share with you, for example, onactivate, which is triggered when the object is set to the active element.

Html DIV event Properties

Onactivate

Triggers when the object is set to the active element.

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 selected area is copied to the system clipboard.

Onbeforecut

This Html DIV event property is triggered on the source object before the selected area is deleted from the document.

Onbeforedeactivate

Triggers immediately before the activeElement changes from the current object to another object in the parent document.

Onbeforeeditfocus

Triggers before an object contained in an editable element enters the user interface active state or before the editable container becomes a control selection.

Onbeforepaste

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

Onbeforeupdate

Triggered on a data-bound object before successfully updating the associated object in the data source object.

Onblur

This Html DIV event property fires when the object loses input focus.

Onclick

Triggers when the user clicks the object with the left mouse button.

Oncontextmenu

Triggers when the user right-clicks the client area to open the context menu.

Oncontrolselect

Triggered when the user is about to make a control selection for the object.

Oncopy

Triggered on the source element when the user copies an object or selection and adds it to the system clipboard.

Oncut

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

Ondblclick

Triggered when the user double-clicks the object.

Ondeactivate

This Html Div event property fires when the activeElement changes from the current object to another object in the parent document.

Ondrag

Continues to trigger on the source object when a drag operation is performed.

Ondragend

Triggered on the source object when the user releases the mouse at the end of the drag operation.

Ondragenter

Triggers on the target element when the user drags an object to a legitimate drag target.

Ondragleave

Triggered on the target object when the user moves the mouse away from the legal drag target during the drag operation.

Ondragover

Continues to trigger on the target element when the user drags the object across the legitimate drag target.

Ondragstart

The Html DIV event property fires on the source object when the user starts dragging the text selection or selecting the object.

Ondrop

Triggers on the target object when the mouse button is released during the drag operation.

Onerrorupdate

Triggered on a data-bound object when there is an error updating the associated data in the data source object.

Onfilterchange

Triggered when the visual filter changes the state or completes the transition.

Onfocus

Triggers when the object gets focus.

Onfocusin

Triggered before the element is about to be set to focus.

Onfocusout

Triggers on the element that currently has focus immediately after moving focus to another element.

Onhelp

Triggered when the user presses F1 when the browser is the current window.

Onkeydown

Triggered when the user presses the keyboard key.

Onkeypress

Triggered when the user presses the literal key.

Onkeyup

Triggered when the user releases the keyboard key.

Onlayoutcomplete

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

Onlosecapture

Triggers when an object loses its mouse snap.

Onmousedown

Triggered when the user clicks the object with any mouse button.

Onmouseenter

Triggered when the user moves the mouse pointer inside the object.

Onmouseleave

This Html DIV event property is triggered when the user moves the mouse pointer out of the boundary of the object.

Onmousemove

Triggered when the user moves the mouse over the object.

Onmouseout

Triggered when the user moves the mouse pointer out of the boundary of the object.

Onmouseover

Triggered when the user moves the mouse pointer inside the object.

Onmouseup

Triggered when the user releases the mouse button when the mouse is over the object.

Onmousewheel

Triggered when the mouse wheel button rotates.

Onmove

Triggered when the object moves.

Onmoveend

Triggered when the object stops moving.

Onmovestart

Triggered when the object starts to move.

Onpaste

This Html DIV event property is triggered on the target object when the user pastes data to transfer data from the system clipboard to the document.

Onpropertychange

Triggers when a property change occurs on the object.

Onreadystatechange

Triggered when the state of the object changes.

Onresize

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

Onresizeend

Triggered when the user has finished changing 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 selection area of the control.

Onscroll

This Html DIV event property fires when the user scrolls the scroll bar of the object.

Onselectstart

Triggered when the object is about to be selected.

Ontimeerror

Unconditionally triggered when a specific time error occurs, usually caused by setting the property to an invalid value

After reading the above, do you have any further understanding of the properties of Html DIV events? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report