In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the common events and methods of html text what the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that after reading this html text common events and methods of which articles will be rewarded, let's take a look.
Event description
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: triggers immediately before the object is set to the current element.
Onbeforecut: the selected area is triggered on the source object before it is deleted from the document.
Onbeforedeactivate: triggered 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: triggers when an object loses input focus.
Onchange: triggers when the content of an object or selection changes.
Onclick: triggered when the user clicks an object with the left mouse button.
Oncontextmenu: triggered 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.
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 an object.
Ondeactivate: triggers when an activeElement changes from the current object to another object in the parent document.
Ondrag: triggers continuously on the source object when dragging.
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: triggers 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 legal drag target.
Ondragstart: triggers 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: triggers when the visual filter changes the state or completes the transition.
Onfocus: triggers when an object gains 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 a keyboard key.
Onkeypress: triggered when the user presses the literal key.
Onkeyup: triggered when the user releases the keyboard key.
Onlosecapture: triggers when an object loses its mouse snap.
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 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: triggers when an object moves.
Onmoveend: triggered when the object stops moving.
Onmovestart: triggers when an object starts to move.
Onpaste: triggers 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 an object.
Onreadystatechange: triggered when the state of an 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 an object in the selection area of the control.
Onselect: triggers when the current selection changes.
Onselectstart: triggered when an 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.
Method description
AddBehavior: attach a behavior to the element.
AppendChild: appends a child element to the object.
ApplyElement: makes an element a child or parent of another element.
AttachEvent: binds the specified function to an event so that it is called whenever the event is triggered on the object.
Blur: causes the element to lose focus and triggers the onblur event.
ClearAttributes: removes all tag attributes and values from the object.
Click: triggers the onclick event to simulate a click.
CloneNode: copies references to objects from the document hierarchy.
ComponentFromPoint: returns the position of the object under the specified coordinates through a specific event.
Contains: checks whether the object contains a given element.
CreateTextRange: create a TextRange object for the element.
DetachEvent: unbind the specified function from the event so that the function is not notified when the event is triggered.
DragDrop: initializes the drag event.
FireEvent: the specified event that triggers the object.
Focus: causes the element to get focus and executes the code specified by the onfocus event.
GetAdjacentText: returns the adjacent text string.
GetAttribute: gets the value of the specified tag attribute.
GetAttributeNode: gets the attribute object referenced by the attribute.name property.
GetBoundingClientRect: gets the object bound to the specified collection of TextRectangle objects.
GetClientRects: gets a collection of rectangles that describe the content of the object or the layout in the client area. Each rectangle describes a straight line.
GetExpression: gets the expression for a given attribute.
HasChildNodes: returns a value indicating whether the object has children.
InsertAdjacentElement: inserts an element at the specified location.
InsertAdjacentHTML: inserts the given HTML text into the element at the specified location.
InsertAdjacentText: inserts the given text at the specified location.
InsertBefore: inserts elements in the document hierarchy.
MergeAttributes: copies all read / write tag attributes to the specified element.
Normalize: merge adjacent TextNode objects to generate a regular document object model.
ReleaseCapture: releases mouse snaps of objects in the current document.
RemoveAttribute: removes the given tag attribute of an object.
RemoveAttributeNode: deletes the attribute object from the object.
RemoveBehavior: the act of separating elements.
RemoveChild: removes the child node from the element.
RemoveExpression: removes the expression from the specified attribute.
RemoveNode: removes objects from the document hierarchy.
ReplaceAdjacentText: replaces the adjacency text of the element.
ReplaceChild: replace existing child elements with new child elements.
ReplaceNode: replace the object with other elements.
ScrollIntoView: scroll objects into the visible range and arrange them to the top or bottom of the window.
Select: highlight the input area of the form element.
SetActive: sets the object as the current object without putting the object into focus.
SetAttribute: sets the value of the specified tag attribute.
SetAttributeNode: sets the attribute object to be part of the object.
SetCapture: sets mouse snaps for objects that belong to the current document.
SetExpression: sets the expression for the specified object.
SwapNode: swaps the location of two objects in the document hierarchy.
This is the end of the article on "what are the common events and methods of html text?" Thank you for reading! I believe you all have a certain understanding of "what are the common events and methods of html text". If you want to learn more, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.