Event method properties for HTML Select

Source: Internet
Author: User
Tags html form

Event

OnActivate

Triggered when the object is set to the active element.
onafterupdate Triggered on a data-bound object after successfully updating the associated object in the data source object.
Onbeforeactivate The object is triggered immediately before it is set to the current element .
Onbeforecut The Zhong District is fired from the source object before it is removed from the document.
Onbeforedeactivate Fires immediately before the 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 UI activation State or the 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.
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.
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 right-clicks a client area to open a context menu.
Oncontrolselect Triggered when the user is about to make a control selection on the object .
Oncut Fires on the source element when an object or selection is deleted from the document and added to the system Clipboard.
OnDblClick Triggered when the user double-clicks an object.
OnDeactivate triggered when activeelement changes from the current object to another object in the parent document.
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 a legitimate drag target during a drag operation.
OnDragOver Triggers on the target element when the user drags the object across a legitimate drag target.
OnDrop Triggered on the target object when the mouse button is released during a drag operation.
onerrorupdate Fires on data-bound objects when an error occurs while updating the associated data in the data source object.
onfocus Triggered when the object receives focus.
Onfocusin triggered when the element will be set to focus.
Onfocusout Fires immediately after moving the focus to another element, triggering on the element that currently has focus.
OnHelp Triggered when the user presses the F1 key while the browser is in 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.
Onlosecapture Triggered when the object loses mouse capture.
OnMouseDown Triggered when the user clicks on 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 bounds of the object.
OnMouseMove Triggered when the user moves the mouse over an object.
onmouseout Triggered when the user moves the mouse pointer out of the bounds of the object.
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 the object stops moving.
Onmovestart Triggered when the object starts to move.
Onpaste Triggered 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 that occurs on an object.
onReadyStateChange Triggered when the object state changes.
OnResize triggered when the size of the object is about to change.
Onresizeend Triggered when the user finishes changing the dimensions of the object in the selected area of the control.
Onresizestart Triggered when the user starts to change the dimensions of the object in the control's selection.
Onselectstart Triggered when the object is about to be selected.

Method

Add Adds an element to a areas, controlrange, or options collection.
Addbehavior Attaches a behavior to an element.
Applyelement Makes an element a child or parent element of another element.
Attachevent Binds the specified function to the event so that the function is called whenever the event fires on the object.
Blur Causes the element to lose focus and trigger the onblur event.
Clearattributes Removes all label properties and values from the object.
Click Triggers an onclick event to simulate a click.
CloneNode Copies a reference to an object 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 the given element.
DetachEvent Cancels the binding of the specified function from the event so that the function does not receive a notification when the event is triggered.
DragDrop Initializes the drag event.
FireEvent Triggers the specified event for the object.
Focus Causes the element to be focused and executes the code specified by the onfocus event.
Getadjacenttext Returns the adjacency text string.
GetAttribute Gets the value of the specified label property.
GetAttributeNode Gets the attribute object referenced by the attribute. Name property.
Getboundingclientrect Gets the object that specifies the Textrectangle object collection binding.
Getclientrects Gets a rectangular collection that describes the content of the object or the layout within the client area. Each rectangle describes a straight line.
getElementsByTagName Gets a collection of objects based on the specified element name.
Getexpression_r Gets an expression for the given property.
HasChildNodes Returns a value that indicates whether the object has child objects.
Insertadjacentelement Inserts an element at the specified location.
insertAdjacentHTML Inserts the given HTML text in the element at the specified position.
insertAdjacentText Inserts the given text at the specified position.
InsertBefore Inserts an element in the document hierarchy.
Mergeattributes Copies all read/write label properties to the specified element.
Normalize Merges the adjacency textnode object to produce a regular document Object model.
ReleaseCapture Releases mouse snaps for objects in the current document.
Remove Removes an element from the collection.
RemoveAttribute Removes the given label property for the object.
Removeattributenode Removes the delete attribute object from the object.
Removebehavior The behavior of the detached element.
RemoveChild Removes a child node from the element.
Removeexpression_r Removes an expression from the specified property.
RemoveNode Removes an object from the document hierarchy.
Replaceadjacenttext Replaces the adjacency text of an element.
ReplaceChild Replaces the existing child element with the new child element.
ReplaceNode Replace the object with another element.
scrollIntoView Scrolls the object into the visible range, arranging it to the top or bottom of the window.
SetActive Sets the object to be the current object without placing the object in focus.
SetAttribute Sets the value of the specified label property.
Setattributenode Sets the attribute object as part of the object.
SetCapture Sets mouse snaps for objects that belong to the current document.
Setexpression_r Sets an expression for the specified object.
SwapNode Swaps the position of two objects in the document hierarchy.
Urns Gets a collection of all objects that have the specified behavior attached.

Property

ACCESSKEY AccessKey Sets or gets the shortcut key for an object.
ALIGN Align Sets or gets how the object is arranged against its adjacency text.
Atomicselection Specifies whether an element and its contents can be selected uniformly in an invisible unit.
Canhavechildren Gets a value that indicates whether the object can contain child objects.
Canhavehtml Gets a value that indicates whether the object can contain rich HTML tags.
CLASS ClassName Sets or gets the class of the object.
ClientHeight Gets the height of the object without calculating any margins, borders, scrollbars, or fillers that may be applied to the object.
ClientLeft Gets the distance between the Offsetleft property and the actual left side of the customer area.
ClientTop Gets the distance between the OffsetTop property and the actual top of the customer area.
ClientWidth Gets the width of the object, without calculating any margins, borders, scrollbars, or fillers that may be applied to the object.
Datafld Datafld Sets or gets the field specified by the Datasrc property that is bound to the given data source for the specified object.
Datasrc Datasrc Sets or gets the data source used for data binding.
DIR Dir Sets or gets the reading order of the object.
Disabled Gets a value that indicates whether the user can interact with the object.
DISABLED Disabled Sets or gets the state of the control.
FirstChild Gets a reference to the first child object of the ChildNodes collection of the object.
Form Gets a reference to the form in which the object resides.
Hidefocus Hidefocus Sets or gets a value that indicates whether the object explicitly indicates focus.
Id Id Gets the string that identifies the object.
InnerHTML Sets or gets the HTML that is within the start and end tags of the object.
InnerText Sets or gets the text that is within the start and end tags of the object.
Iscontenteditable Gets a value that indicates whether the user can edit the object content.
Isdisabled Gets a value that indicates whether the user can interact with the object.
Ismultiline Gets a value that indicates whether the object's content contains one row or more rows.
isTextEdit Gets whether a TextRange object can be created using the object.
Lang Lang Sets or gets the language to use.
LANGUAGE Language Sets or gets the language in which the current script is written.
LastChild Gets a reference to the last child object in the childNodes collection of this object.
Length Sets or gets the number of objects in the collection.
Multiple Multiple Sets or gets a Boolean value that indicates whether multiple items can be selected in the list.
NAME Name Sets or gets the name of the object.
NextSibling Gets a reference to the next sibling object of this object.
NodeName Gets the name of a specific node type.
NodeType Gets the type of node that you want.
NodeValue Sets or gets the value of the node.
Offsetheight Gets the height of the object relative to the layout or the parent coordinate specified by the parent coordinate offsetParent property.
Offsetleft Gets the left position of the computed object relative to the layout or the parent coordinate specified by the offsetParent property.
OffsetParent Gets a reference to the container object that defines the OffsetTop and offsetleft properties of the object.
OffsetTop Gets the computed top position of the object relative to the layout or the parent coordinate specified by the OffsetTop property.
Offsetwidth Gets the width of the object relative to the layout or the parent coordinate specified by the parent coordinate offsetParent property.
Onoffbehavior Gets an object that indicates whether the specified microsoft®directanimation® behavior is running.
outerHTML Sets or gets the HTML form of the object and its contents.
Outertext Sets or gets the text of the object.
Ownerdocument Sets or gets the document object associated with the node.
Parentelement Gets the parent object in the object hierarchy.
ParentNode Gets the parent object in the document hierarchy.
parentTextEdit Gets the container object in the document hierarchy that can be used to create TextRange that contain the original object.
PreviousSibling Gets a reference to the previous sibling object of this object.
ReadyState Gets the current state of the object.
RecordNumber Gets the original record of the generated object in the dataset.
ScopeName Gets the namespace defined for the element.
ScrollHeight Gets the scroll height of the object.
ScrollLeft Sets or gets the distance between the left edge of the object and the leftmost of the currently visible content in the window.
ScrollTop Sets or gets the distance between the top of the object and the top of the visible content in the window.
ScrollWidth Gets the scrolling width of the object.
SelectedIndex Sets or gets the position of the selected option in the select object.
SIZE Size Sets or gets the number of rows in the list.
SourceIndex Gets the order in which the object is placed in the source sequence, that is, the object appears in the all collection of document.
STYLE Sets the inline style for this setting element.
TABINDEX TabIndex Sets or gets the index that defines the Tab order of the object.
TagName Gets the label name of the object.
Tagurn Sets or gets the Uniform Resource name (URN) specified in the namespace declaration.
Type Gets the type of the select control based on the value of the multiple property.
UniqueID Gets the unique identifier that is automatically generated for the object.
Unselectable Specifies that the element cannot be selected.
VALUE Value Sets or gets the value that is returned to the server when the form control commits.

Event method properties for HTML Select

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.