Platform Support
IE | Mozilla | Netscape | Opera | Safari | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
---|
Constructors
Constructor | Action | IE | Mozilla | Netscape | Opera | Safari | ||
---|---|---|---|---|---|---|---|---|
HTMLOptionElement Constructor() : HTMLOptionElement
Option element on an HTML form.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | ||
HTMLOptionElement() : HTMLOptionElementOption element on an HTML form. Returns
|
Inherited Properties
Property | Action | IE | Mozilla | Netscape | Opera | Safari |
---|---|---|---|---|---|---|
Character for the hotkey that gives focus to the element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Array of all of the elements in the element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Alignment property for the element. Used for display elements. (e.g. "center")
|
No Details | 4.0+ | no | no | no | no |
|
||||||
attributes
: Array
Array of attributes for the element.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Gets or sets a time delay to lapse before the element starts "playing".
|
No Details | 5.5+ | no | no | no | no |
|
||||||
Array of behaviors attached to the element.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
If true, indicates that the element can have child nodes.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
If true, indicates that the element can contain HTML tags.
|
No Details | 5.5+ | no | no | no | no |
|
||||||
childNodes
: Array
Array of the child nodes of the element.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
children
: Array
Array of the child nodes of the element.
|
Show Details | 4.0+ | no | no | 8.0+ | 1.3+ |
|
||||||
className
: String
Name of the CSS class that the element belongs to.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Height of the content of the element (in pixels).
|
No Details | 4.0+ | 1.0+ | 7.0+ | 7.0+ | 1.0+ |
|
||||||
Number of pixels between the offsetLeft property of the element and the start of the content of the element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Number of pixels between the offsetTop property of the element and the top of the content of the element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Width of the content of the element (in pixels).
|
No Details | 4.0+ | 1.0+ | 7.0+ | 7.0+ | 1.0+ |
|
||||||
Indicates whether the content of the element is editable. Possible values are "inherit", "true", or "false".
|
No Details | 5.5+ | no | no | no | no |
|
||||||
currentStyle
: Object
Reference to the Style object specifying the styles applied to the element.
|
Show Details | 5.0+ | no | no | no | no |
|
||||||
dir
: String
Direction of the text in the element. Possible values are "ltr" (left-to-right) or "rtl" (right-to-left).
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
disabled
: Boolean
If true, indicates that the element is disabled.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Reference to the parent Document object for the element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Array of Microsoft CSS filters on the element.
|
No Details | 5.5+ | no | no | no | no |
|
||||||
firstChild
: Object
Reference to the first child element of the element, if one exists.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
If true, indicates that the element is an HTML+TIME media element.
|
No Details | 5.5+ | no | no | no | no |
|
||||||
If true, the element does not give any visual cues to indicate when it has focus.
|
No Details | 5.5+ | no | no | no | no |
|
||||||
id
: String
Unique identifier for the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
innerHTML
: String
HTML content within the tags of the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
innerText
: String
Text string enclosed by the tags of the element. Any HTML tags will be interpreted as part of the text string, not as HTML.
|
Show Details | 4.0+ | no | 6.0+ | 7.0+ | 1.0+ |
|
||||||
If true, indicates that the user can edit the contents of the element.
|
No Details | 5.5+ | no | no | no | no |
|
||||||
If true, indicates that the element is disabled from user interaction.
|
No Details | 5.5+ | no | no | no | no |
|
||||||
If true, indicates that a TextRange object can be created using the element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
lang
: String
Language code for the content of the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
No Details | 4.0+ | no | no | no | no | |
|
||||||
lastChild
: Object
Reference to the last child element of the element, if it exists.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Local XML name for the element.
|
No Details | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
The XML Namespace URI for the element.
|
No Details | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
nextSibling
: Object
Reference to the next sibling element of the element.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
nodeName
: String
Name of the element tag.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 8.0+ | 1.3+ |
|
||||||
nodeType
: Number
Node type for the element. See Remarks for full explanation.
|
Show Details | 5.5+ | 1.0+ | 6.0+ | 8.0+ | 1.3+ |
|
||||||
nodeValue
: String
Value of the element.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 8.0+ | 1.3+ |
|
||||||
offsetHeight
: Number
Height of the element (in pixels).
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
offsetLeft
: Number
Number of pixels the left edge of the element is offset from the left edge of its parent element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
offsetParent
: Object
Reference to the parent object corresponding with the offsetHeight, offsetWidth, offsetLeft, and offsetTop properties.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Number of pixels the top edge of the element is offset from the top edge of its parent element.
|
No Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Width of the element (in pixels).
|
No Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Fires when the element becomes active.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires immediately before the selection is copied to the clipboard.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires immediately before the selection is cut to the clipboard.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires immediately before the element stops being the active element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires immediately before the element receives focus prior to being edited.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires immediately before the selection is pasted from the clipboard to the element.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when the element loses focus.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when the element is clicked.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when the element is right-clicked and the context menu opens.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires immediately before the element is selected.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires when the element is copied to the clipboard.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when the element is cut to the clipboard.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when the element is double-clicked.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when the active element becomes inactive.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires when the element is dragged.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when the element is released from being dragged.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when the element has another object dragged onto it that can be dropped on the element.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when an element has an object dragged out of it that could be dropped onto the element.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when an element has an object dragged over it that could be dropped onto the element.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires immediately before an element is dragged.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when an object is dropped onto the element.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when the CSS Filter of an element changes or finishes transitioning.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires when the element receives focus.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when a user presses the F1 key to activate help.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires when a user presses down on a key while the element has focus.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when a user presses a key or holds down the key while the element has focus.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when a user releases a key while the element has focus.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when the element loses mouse capture.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires when a user clicks down on the mouse button while the element has focus.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
onmouseenter
: Function
Fires when the mouse pointer enters the element.
|
Show Details | 4.0+ | no | no | no | no |
|
||||||
onmouseleave
: Function
Fires when the mouse pointer leaves the element.
|
Show Details | 4.0+ | no | no | no | no |
|
||||||
Fires when the mouse moves while the pointer over the element.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when the mouse pointer moves off of the element.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when the mouse pointer moves over the element.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when the user releases the mouse button while the element has focus.
|
No Details | 2.0+ | 1.0+ | 1.0+ | 4.0+ | 1.0+ |
|
||||||
Fires when the clipboard contents are pasted onto the element.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when one of the properties of the element changes.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires when the ready state of the element changes.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires immediately before an element is about to be resized.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
Fires when the element is finished being resized.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires immediately before a user resizes the element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Fires immediately before the element is selected.
|
No Details | 4.0+ | no | no | no | 1.0+ |
|
||||||
outerHTML
: String
HTML mark-up for an element, including start and end tags and any content between the tags.
|
Show Details | 4.0+ | no | no | 8.0+ | 1.3+ |
|
||||||
outerText
: String
Plain text for an element, including start and end tags.
|
Show Details | 4.0+ | no | no | 8.0+ | 1.3+ |
|
||||||
ownerDocument
: Object
Reference to the document that contains the element.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
Reference to the direct parent element of the element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
parentNode
: Object
Reference to the direct parent node of the element, if it exists.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
Reference to the closest parent element to the current element that can create a TextRange that contains the current element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Prefix XML name for the element.
|
No Details | no | 1.0+ | no | 4.0+ | 1.0+ |
|
||||||
previousSibling
: Object
Reference to the previous sibling element of the element, if it exists.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 4.0+ | 1.0+ |
|
||||||
readyState
: String
Current readiness state of the element. See Remarks for possible values.
|
Show Details | 4.0+ | no | no | no | no |
|
||||||
Record number for the data set that generated the element.
|
No Details | 4.0+ | no | no | no | no |
|
||||||
Reference to the Style object specifying the current runtime style(s) of the element.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
XML scope of the element.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
Height (in pixels) of the total content area of the element.
|
No Details | 4.0+ | 1.0+ | 7.0+ | 7.0+ | 1.0+ |
|
||||||
Number of pixels between the actual left edge of the element to the displayed left edge of the element.
|
No Details | 4.0+ | 1.0+ | 7.0+ | 7.0+ | 1.0+ |
|
||||||
Number of pixels between the actual top edge of the element to the displayed top edge of the element.
|
No Details | 4.0+ | 1.0+ | 7.0+ | 7.0+ | 1.0+ |
|
||||||
Width (in pixels) of the total content area of the element.
|
No Details | 4.0+ | 1.0+ | 7.0+ | 7.0+ | 1.0+ |
|
||||||
sourceIndex
: Number
Index of the element in the Document.all[] array.
|
Show Details | 4.0+ | no | no | 8.0+ | no |
|
||||||
style
: HTMLStyleObject
Reference to the inline CSS style for the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
If true, indicates that the time container of the element must synchronize playback with the element. Default is false.
|
No Details | 5.5+ | no | no | no | no |
|
||||||
Indicates the tab order index for the element.
|
No Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
tagName
: String
HTML tag name for the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 8.0+ | 1.3+ |
|
||||||
URN for the XML Namespace of the element.
|
No Details | 5.0+ | no | no | no | no |
|
||||||
Gets or sets the type of timeline that corresponds to the element.
|
No Details | 5.5+ | no | no | no | no |
|
||||||
title
: String
Value of the title attribute for the element.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
System-generated unique identifier for the element.
|
No Details | 5.5+ | no | no | no | no |
|
Properties
Property | Action | IE | Mozilla | Netscape | Opera | Safari |
---|---|---|---|---|---|---|
defaultSelected
: Boolean
If true, indicates that the option is selected by default.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
disabled
: Boolean
If true, indicates that the option is disabled.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
form
: HTMLFormElement
The form that contains this element.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
index
: Number
Index of the element within its parent Select element.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
label
: String
Text label for the element.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ |
|
||||||
selected
: Boolean
If true, indicates that the element is selected.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
text
: String
Text label for the option element.
|
Show Details | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|
||||||
value
: String
Value for the element that is sent to the server when the form is submitted.
|
Show Details | 4.0+ | 1.0+ | 4.0+ | 7.0+ | 1.0+ |
|
Inherited Functions
Method | Action | IE | Mozilla | Netscape | Opera | Safari | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
addBehavior(String url) : HTMLElement
Attaches a behavior to the element as specified in url.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
addEventListener(String whichEvent, Object handler, Boolean direction) : HTMLElement
Attaches an event listener to an HTMLElement that executes a function when the specified event occurs.
|
Show Details | no | 1.0+ | no | 7.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
appendChild(Node newChild) : HTMLElement
Appends a child element to the end of the childNodes[] array for the element.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
applyElement(String newElement, [String where]) : HTMLElement
Adds a new element to the current element either as a child or parent of the current element.
|
Show Details | 5.5+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
attachEvent(String whichHandler, String theFunction) : void
Attaches the specified event handler and function to the element so that every time the event fires, the function is called.
|
Show Details | 5.0+ | no | no | 8.0+ | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
blur() : void
Removes focus from the element.
|
Show Details | 5.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ | |||||||||||
Returns
|
|||||||||||||||||
clearAttributes() : void
Removes all attributes and values from the element.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Returns
|
|||||||||||||||||
click() : void
Simulates a mouse click on the element. Fires the onclick event.
|
Show Details | 4.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ | |||||||||||
Returns
|
|||||||||||||||||
cloneNode(Boolean cloneChildren) : Node
Clones a node and returns the new node.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
componentFromPoint(Boolean x, Boolean y) : String
Returns a string describing the component at the specified location.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
contains(Boolean element) : Boolean
Returns true if the HTMLElement contains the specified element.
|
Show Details | 5.0+ | no | no | 8.0+ | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
detachEvent(Object whichHandler, Object theFunction) : void
Detaches the specified function from the event handler so that the function is no longer called when the event fires.
|
Show Details | 5.0+ | no | no | 8.0+ | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
dispatchEvent(Boolean event) : void
Redirects the specified event instance to be processed by the appropriate handler.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
dragDrop() : void
Fires a drag event on the element.
|
Show Details | 5.5+ | no | no | no | no | |||||||||||
Returns
|
|||||||||||||||||
fireEvent(Boolean handler, [Boolean event]) : void
Fires an instance of the specified event.
|
Show Details | 5.5+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
focus() : void
Gives focus to the element.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||||||||
Returns
|
|||||||||||||||||
getAdjacentText(String where) : String
Gets the string of text in the position specified by where.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
getAttribute(String attributeName) : String
Gets the value of the specified attribute.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
getAttributeNode(String attributeName) : Node
Gets the node of the specified attribute.
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
getBoundingClientRect() : Object
Returns a TextRectangle that marks the top, bottom, left, and right boundaries (in pixels) of the content of the element.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Returns
|
|||||||||||||||||
getClientRects() : Object
Returns a collection of all of the TextRectangle objects contained by the element.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Returns
|
|||||||||||||||||
getExpression(String propertyName) : String
Returns the property expression specified by propertyName.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
hasAttribute(String name) : Boolean
Determines if the given attribute exists on this element.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.3+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
hasAttributes() : Boolean
Returns true if the node is an element node with attributes.
|
Show Details | no | 1.0+ | 6.0+ | 7.0+ | 1.3+ | |||||||||||
Returns
|
|||||||||||||||||
hasChildNodes() : Boolean
Returns true if the node has child nodes.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 8.0+ | 1.0+ | |||||||||||
Returns
|
|||||||||||||||||
insertAdjacentElement(String where, Element element) : void
Inserts the specified Element object adjacent to this element.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
insertAdjacentHTML(String where, String text) : void
Inserts the specified string of HTML text adjacent to this element. Parsed as HTML.
|
Show Details | 4.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
insertAdjacentText(String where, String text) : void
Inserts the specified string of HTML text adjacent to this element. Not parsed as HTML.
|
Show Details | 4.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
insertBefore(Node newChild, Node refChild) : void
Inserts a new child node in front of the reference child node.
|
Show Details | 5.0+ | 1.0+ | 6.0+ | 8.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
isSupported(String feature, [String version]) : Boolean
Returns true if the specified feature and version are supported.
|
Show Details | no | 1.0+ | 6.0+ | 8.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
mergeAttributes(Object source, [Boolean preserve]) : void
Merges the attributes from the source element to the current element.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
normalize() : void
Merges text nodes adjacent to the element to create a normalized DOM.
|
Show Details | N/A | 1.0+ | 6.0+ | 8.0+ | no | |||||||||||
Returns
|
|||||||||||||||||
releaseCapture() : void
Stops the mouse from capturing events on the element.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Returns
|
|||||||||||||||||
removeAttribute(String name) : void
Removes an attribute by name
|
Show Details | 6.0+ | 1.0+ | 6.0+ | 8.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
removeEventListener(String type, EventListener listener, Boolean useCapture) : void
Removes an event listener from an event target.
|
Show Details | no | 1.0+ | no | 7.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
removeExpression(String propertyName) : void
Removes the specified property expression from the element.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
replaceAdjacentText(String where, String text) : void
Replaces the current text adjacent to the element with the specified text.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
replaceNode(Node newNode) : void
Replaces the current node with the node specified in newNode.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
scrollIntoView([Boolean alignToTop]) : void
Immediately scrolls the element into the viewable portion of the web page.
|
Show Details | 4.0+ | 1.0+ | 7.0+ | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
setActive() : void
Sets this element as "active" without giving focus to the element.
|
Show Details | 5.5+ | no | no | no | no | |||||||||||
Returns
|
|||||||||||||||||
setAttribute(String name, String value) : void
Adds a new attribute.
|
Show Details | 4.0+ | 1.0+ | 6.0+ | 7.0+ | 1.0+ | |||||||||||
Parameters
Returns
|
|||||||||||||||||
setCapture([Boolean containerCapture]) : void
Sets mouse capture to the element.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
setExpression(String property, String expression, [String language]) : void
Sets the specified expression on the specified property of an element.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
swapNode(Node node) : Node
Swaps the current node with the specified node in the document.
|
Show Details | 5.0+ | no | no | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
unwatch(String property) : void
Removes the watchpoint from the specified property.
|
Show Details | no | no | 4.0+ | no | no | |||||||||||
Parameters
Returns
|
|||||||||||||||||
watch(String property, String handler) : void
Sets a watch point on a property. When the value of that property changes, the specified handler is automatically invoked.
|
Show Details | no | no | 4.0+ | no | no | |||||||||||
Parameters
Returns
|
References
HTMLFormElement|HTMLInputElement|HTMLSelectElement|Option|Select
Availability
HTML DOM Level 1|HTML DOM Level 2|W3C