Input text events and Methods

Source: Internet
Author: User

Event Description
Onactivate is triggered when the object is set to an active element.
Onafterupdate is triggered when the associated object in the data source object is updated successfully on the Data Binding object.
The onbeforeactivate object is triggered immediately before it is set to the current element.
Onbeforecut is triggered in the source object before being deleted from the document in the central region.
Onbeforedeactivate is triggered immediately before activeelement changes from the current object to another object in the parent document.
Onbeforeeditfocus is triggered before an object contained in an editable element enters the user interface activation state or before the Editable container becomes the control selected area.
Onbeforepaste is triggered on the target object before being pasted from the system clipboard to the document in the selected area.
Onbeforeupdate is triggered on the Data Binding object before the associated objects in the data source object are successfully updated.
Onblur is triggered when the object loses the input focus.
Onchange is triggered when the content of the object or selected area changes.
Onclick is triggered when you left-click an object.
Oncontextmenu is triggered when you right-click the client area to open the context menu.
Oncontrolselect is triggered when you want to create a control area for this object.
Oncut is triggered on the source element when an object or selected area is deleted from the document and added to the system clipboard.
Ondblclick is triggered when you double-click an object.
Ondeactivate is triggered when activeelement changes from the current object to another object in the parent document.
Ondrag is triggered continuously on the source object during the drag operation.
Ondragend is triggered on the source object when you release the mouse after the drag operation is complete.
Ondragenter is triggered on the target element when you drag an object to a valid drag target.
Ondragleave is triggered on the target object when you move the mouse out of a valid drag target during the drag operation.
Ondragover is triggered continuously on the target element when the user drags an object across a valid drag target.
Ondragstart is triggered when the user starts to drag the selected text area or the selected object on the source object.
Ondrop is triggered on the target object when the mouse button is released during the drag operation.
Onerrorupdate is triggered when an error occurs while updating the associated data in the data source object.
Onfilterchange is triggered when the visual filter changes the status or completes the conversion.
Onfocus is triggered when the object obtains the focus.
Onfocusin is triggered before the element is set to focus.
Onfocusout is triggered immediately after moving the focus to other elements on the element with the current focus.
Onhelp is triggered when you press the F1 key when the browser is the current window.
Onkeydown is triggered when you press the keyboard button.
Onkeypress is triggered when you press the literal key.
Onkeyup is triggered when the user releases the keyboard button.
Onlosecapture is triggered when an object loses Mouse capture.
Onmousedown is triggered when you click an object with any mouse button.
Onmouseenter is triggered when you move the mouse pointer to an object.
Onmouseleave is triggered when the user moves the mouse pointer out of the Object Boundary.
Onmousemove is triggered when you move the mouse over an object.
Onmouseout is triggered when you move the mouse pointer out of the Object Boundary.
Onmouseover is triggered when you move the mouse pointer to an object.
Onmouseup is triggered when you release the mouse button when the mouse is over the object.
Onmousewheel is triggered when the scroll wheel button is rotated.
Onmove is triggered when the object is moved.
Onmoveend is triggered when the object is stopped.
Onmovestart is triggered when the object begins to move.
Onpaste is triggered on the target object when you paste data to transfer data from the system clipboard to the document.
Onpropertychange is triggered when attribute changes occur on the object.
Onreadystatechange is triggered when the object state changes.
Onresize is triggered when the object size changes.
Onresizeend is triggered when you change the object size in the selected area of the control.
Onresizestart is triggered when you start to change the object size in the selected area of the control.
Onselect is triggered when the selected area changes.
Triggered when the onselectstart object is to be selected.
Ontimeerror is triggered unconditionally when an error occurs at a specific time. It is usually caused by setting the attribute to an invalid value.
Method description
Addbehavior attaches an action to an element.
Appendchild adds a child element to the object.
Applyelement makes the element a child or parent element of other elements.
Attachevent binds a specified function to an event so that the function is called whenever the event is triggered on an object.
Blur causes the element to lose focus and triggers the onblur event.
Clearattributes deletes all tag attributes and values from the object.
Click triggers the onclick event to simulate a click.
Clonenode copies references to objects at the document level.
Componentfrompoint returns the position of the object under the specified coordinate through a specific event.
Contains checks whether the object contains the given element.
CreateTextRange creates a textrange object for the element.
Detachevent unbinds the specified function from the event, so that the function will not receive notifications when the event is triggered.
Dragdrop initializes the drag event.
The specified event of the fireevent trigger object.
Focus enables the element to get the focus and execute Code .
Getadjacenttext returns the adjacent text string.
Getattribute gets the value of the specified tag attribute.
Getattributenode obtains the attribute object referenced by the attribute. Name attribute.
Getboundingclientrect obtains the objects bound to the specified textrectangle object set.
Getclientrects obtains the content of the description object or the rectangular set of the layout in the customer zone. Each rectangle describes a straight line.
Getexpression gets the expression of the given attribute.
Haschildnodes indicates whether the object has a sub-object value.
Insertadjacentelement inserts an element at the specified position.
Insertadjacenthtml inserts the specified HTML text into the element at the specified position.
Insertadjacenttext inserts the specified text at the specified position.
Insertbefore inserts an element into the document hierarchy.
Mergeattributes copies all read/write tag attributes to the specified element.
Normalize merges adjacent textnode objects to generate a regular Document Object Model.
Releasecapture releases the Mouse capture of objects in the current document.
Removeattribute deletes the given tag attribute of an object.
Removeattributenode deletes the attribute object from the object.
Removebehavior separates the behavior of elements.
Removechild deletes the child node from the element.
Removeexpression deletes an expression from a specified attribute.
Removenode deletes objects from the document level.
Replaceadjacenttext replaces the adjacent Text of the element.
ReplaceChild replaces the existing child element with the new child element.
Replacenode replaces objects with other elements.
Scrollintoview scrolls the object to the visible range and arranges it to the top or bottom of the window.
Select highlights the input area of the form element.
Setactive sets the object as the current object without focusing the object.
Setattribute sets the value of the specified tag attribute.
Setattributenode sets attribute objects as part of objects.
Setcapture: Set the Mouse capture of the object of the current document.
Setexpression sets the expression of the specified object.
The location of two objects in the swapnode switch document hierarchy.


 

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.