HTMLSelectElement

This object is available to unprivileged JavaScript. It implements the following interfaces:

Constants

The nsIDOMNode interface is the primary datatype for the entire Document Object Model. It represents a single node in the document tree.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Core/

short ELEMENT_NODE = 1
short ATTRIBUTE_NODE = 2
short TEXT_NODE = 3
short CDATA_SECTION_NODE = 4
short ENTITY_REFERENCE_NODE = 5
short ENTITY_NODE = 6
short PROCESSING_INSTRUCTION_NODE = 7
short COMMENT_NODE = 8
short DOCUMENT_NODE = 9
short DOCUMENT_TYPE_NODE = 10
short DOCUMENT_FRAGMENT_NODE = 11
short NOTATION_NODE = 12

Properties

readonly NamedNodeMap attributes

readonly NodeList childNodes

String className

readonly PRInt32 clientHeight

readonly PRInt32 clientWidth

String dir

boolean disabled

readonly Node firstChild

readonly HTMLFormElement form

String id

The nsIDOMHTMLElement interface is the primary [X]HTML element interface. It represents a single [X]HTML element in the document tree.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-HTML/

String innerHTML

String lang

readonly Node lastChild

int length

readonly String localName

boolean multiple

String name

readonly String namespaceURI

readonly Node nextSibling

readonly String nodeName

readonly short nodeType

String nodeValue

readonly PRInt32 offsetHeight

readonly PRInt32 offsetLeft

readonly Element offsetParent

readonly PRInt32 offsetTop

readonly PRInt32 offsetWidth

readonly HTMLOptionsCollection options

readonly Document ownerDocument

readonly Node parentNode

String prefix

readonly Node previousSibling

readonly PRInt32 scrollHeight

PRInt32 scrollLeft

PRInt32 scrollTop

readonly PRInt32 scrollWidth

PRInt32 selectedIndex

PRInt32 size

PRInt32 tabIndex

readonly String tagName

The nsIDOMElement interface represents an element in an HTML or XML document.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Core/

String title

readonly String type

String value


Methods

void add ( HTMLElement element , HTMLElement before ) Node appendChild ( Node newChild ) void blur ( ) Node cloneNode ( boolean deep ) void focus ( ) String getAttribute ( String name ) Attr getAttributeNode ( String name ) Attr getAttributeNodeNS ( String namespaceURI , String localName ) String getAttributeNS ( String namespaceURI , String localName ) NodeList getElementsByTagName ( String name ) NodeList getElementsByTagNameNS ( String namespaceURI , String localName ) boolean hasAttribute ( String name ) boolean hasAttributeNS ( String namespaceURI , String localName ) boolean hasAttributes ( ) boolean hasChildNodes ( ) Node insertBefore ( Node newChild , Node refChild ) boolean isSupported ( String feature , String version ) Node item ( int index ) Node namedItem ( String name ) void normalize ( ) void remove ( PRInt32 index ) void removeAttribute ( String name ) Attr removeAttributeNode ( Attr oldAttr ) void removeAttributeNS ( String namespaceURI , String localName ) Node removeChild ( Node oldChild ) Node replaceChild ( Node newChild , Node oldChild ) void scrollIntoView ( boolean top ) void setAttribute ( String name , String value ) Attr setAttributeNode ( Attr newAttr ) Attr setAttributeNodeNS ( Attr newAttr ) void setAttributeNS ( String namespaceURI , String qualifiedName , String value )

void add ( HTMLElement element , HTMLElement before )

Arguments:
element
before

Node appendChild ( Node newChild )

Arguments:
newChild

void blur ( )


Node cloneNode ( boolean deep )

Arguments:
deep

void focus ( )


String getAttribute ( String name )

Arguments:
name

Attr getAttributeNode ( String name )

Arguments:
name

Attr getAttributeNodeNS ( String namespaceURI , String localName )

Arguments:
namespaceURI
localName

String getAttributeNS ( String namespaceURI , String localName )

Arguments:
namespaceURI
localName

NodeList getElementsByTagName ( String name )

Arguments:
name

NodeList getElementsByTagNameNS ( String namespaceURI , String localName )

Arguments:
namespaceURI
localName

boolean hasAttribute ( String name )

Arguments:
name

boolean hasAttributeNS ( String namespaceURI , String localName )

Arguments:
namespaceURI
localName

boolean hasAttributes ( )


boolean hasChildNodes ( )


Node insertBefore ( Node newChild , Node refChild )

Arguments:
newChild
refChild

boolean isSupported ( String feature , String version )

Arguments:
feature
version

Node item ( int index )

Arguments:
index

Node namedItem ( String name )

Arguments:
name

void normalize ( )


void remove ( PRInt32 index )

Arguments:
index

void removeAttribute ( String name )

Arguments:
name

Attr removeAttributeNode ( Attr oldAttr )

Arguments:
oldAttr

void removeAttributeNS ( String namespaceURI , String localName )

Arguments:
namespaceURI
localName

Node removeChild ( Node oldChild )

Arguments:
oldChild

Node replaceChild ( Node newChild , Node oldChild )

Arguments:
newChild
oldChild

void scrollIntoView ( boolean top )

Arguments:
top

void setAttribute ( String name , String value )

Arguments:
name
value

Attr setAttributeNode ( Attr newAttr )

Arguments:
newAttr

Attr setAttributeNodeNS ( Attr newAttr )

Arguments:
newAttr

void setAttributeNS ( String namespaceURI , String qualifiedName , String value )

Arguments:
namespaceURI
qualifiedName
value

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com