Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIDOMXULSelectControlElement

Please add a summary to this article.
Inherits from: nsIDOMXULControlElement Last changed in Gecko 1.9 (Firefox 3)

Method overview

nsIDOMXULSelectControlItemElement appendItem(in DOMString label, in DOMString value);
long getIndexOfItem(in nsIDOMXULSelectControlItemElement item);
nsIDOMXULSelectControlItemElement getItemAtIndex(in long index);
nsIDOMXULSelectControlItemElement insertItemAt(in long index, in DOMString label, in DOMString value);
nsIDOMXULSelectControlItemElement removeItemAt(in long index);

Attributes

Attribute Type Description
itemCount unsigned long Read only.
selectedIndex long  
selectedItem nsIDOMXULSelectControlItemElement  
value DOMString  

Methods

appendItem()

nsIDOMXULSelectControlItemElement appendItem(
  in DOMString label,
  in DOMString value
);
Parameters
label
value
Return value

 

Requires Gecko 1.9 (Firefox 3)

getIndexOfItem()

long getIndexOfItem(
  in nsIDOMXULSelectControlItemElement item
);
Parameters
item
Return value

 

Requires Gecko 1.9 (Firefox 3)

getItemAtIndex()

nsIDOMXULSelectControlItemElement getItemAtIndex(
  in long index
);
Parameters
index
Return value

 

insertItemAt()

nsIDOMXULSelectControlItemElement insertItemAt(
  in long index,
  in DOMString label,
  in DOMString value
);
Parameters
index
label
value
Return value

 

removeItemAt()

nsIDOMXULSelectControlItemElement removeItemAt(
  in long index
);
Parameters
index
Return value

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh
 Last updated by: Sheppy,