Developer Resources

WebDOMHTMLElement

Overview

The WebDOMHTMLElement class represents a DOM html element.

Base Class

WebDOMElement

Constructor

WebDOMHTMLElement()

Methods

WebDOMHTMLElement.getClassName
WebDOMHTMLElement.getDir
WebDOMHTMLElement.getId
Gets the element's id.
WebDOMHTMLElement.getLang
WebDOMHTMLElement.getTitle
Gets the element's title.
WebDOMHTMLElement.getValue
Returns the current value of the node.
WebDOMHTMLElement.setClassName
WebDOMHTMLElement.setDir
WebDOMHTMLElement.setId
Sets the element's id.
WebDOMHTMLElement.setLang
WebDOMHTMLElement.setTitle
Sets the element's title
WebDOMHTMLElement.setValue
Sets the current value of the node.

Inherited Methods

WebDOMElement.getAttribute
Gets the attribute of this element.
WebDOMElement.getAttributeNode
Gets the attribute node of this element.
WebDOMElement.getElementsByTagName
Gets an array of child elements having the specified tag name.
WebDOMElement.getTagName
Gets the tag name of this element.
WebDOMElement.hasAttribute
Returns true if the specified attribute exists, and false otherwise.
WebDOMElement.removeAttribute
Removes the specified attribute from this element.
WebDOMElement.removeAttributeNode
Removes the attribute node of this element.
WebDOMElement.setAttribute
Sets the attribute of this element to a specified value.
WebDOMElement.setAttributeNode
Sets the attribute node of this element.
WebDOMNode.appendChild
Appends a child node to this node.
WebDOMNode.cloneNode
Clones this node.
WebDOMNode.getAttributes
Gets the attributes of this node.
WebDOMNode.getChildNodes
Gets the child nodes of this node.
WebDOMNode.getFirstChild
Gets the first child node of this node.
WebDOMNode.getLastChild
Gets the last child node of this node.
WebDOMNode.getLocalName
Returns the local name
WebDOMNode.getNamespaceURI
Returns the namespace URI
WebDOMNode.getNextSibling
Gets the next sibling node of this node.
WebDOMNode.getNodeName
Gets the name of this node.
WebDOMNode.getNodeType
Gets the type of this node.
WebDOMNode.getNodeValue
Gets the value of this node.
WebDOMNode.getOwnerDocument
Gets the document to which the node belongs.
WebDOMNode.getParentNode
Gets the parent node of this node.
WebDOMNode.getPrefix
Returns the prefix
WebDOMNode.getPreviousSibling
Gets the previous sibling node of this node.
WebDOMNode.hasAttributes
Returns true if this node has attributes, and false otherwise.
WebDOMNode.hasChildNodes
Returns true if this node has child nodes, and false otherwise.
WebDOMNode.insertBefore
Inserts a child node before another child node within this node's children.
WebDOMNode.isSupported
Determines if a feature in a particular version is supported.
WebDOMNode.normalize
Removes all empty text nodes and consolidates adjacent text nodes into a single node.
WebDOMNode.removeChild
Removes a child node from this node.
WebDOMNode.replaceChild
Replaces a child node of this node with another node.
WebDOMNode.setNodeValue
Sets the value of this node.
WebDOMNode.setPrefix
Sets the prefix

WebDOMHTMLElement.getClassName

WebDOMHTMLElement.getClassName() : String

WebDOMHTMLElement.getDir

WebDOMHTMLElement.getDir() : String

WebDOMHTMLElement.getId

WebDOMHTMLElement.getId() : String

Returns

Returns a string that is the element's id.

Description

Get's the element's id.

WebDOMHTMLElement.getLang

WebDOMHTMLElement.getLang() : String

WebDOMHTMLElement.getTitle

WebDOMHTMLElement.getTitle() : String

Returns

Returns a string that is the element's title.

Description

Get's the element's title.

WebDOMHTMLElement.getValue

WebDOMHTMLElement.getValue() : String

Returns

Returns the current value of the node. If the node corresponds to a form input, the value is the one currently entered in the form.

Description

Returns the current value of the node. If the node corresponds to a form input, the value is the one currently entered in the form.

WebDOMHTMLElement.setClassName

WebDOMHTMLElement.setClassName(value : String)

Arguments

value

WebDOMHTMLElement.setDir

WebDOMHTMLElement.setDir(value : String)

Arguments

value

WebDOMHTMLElement.setId

WebDOMHTMLElement.setId(value : String)

Arguments

value
The value to which to set the id.

Description

Set's the element's id.

WebDOMHTMLElement.setLang

WebDOMHTMLElement.setLang(value : String)

Arguments

value

WebDOMHTMLElement.setTitle

WebDOMHTMLElement.setTitle(value : String)

Arguments

value
The value to which to set the title.

Description

Set's the element's title.

WebDOMHTMLElement.setValue

WebDOMHTMLElement.setValue(text : String)

Arguments

text
The value to which to set the current value of the node. If the node corresponds to a form input, the value is the one that will actually show in the form.

Description

Sets the current value of the node. If the node corresponds to a form input, the value is the one that will actually show in the form.