All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.w3c.dom.html.HTMLInputElement

public interface HTMLInputElement
extends HTMLElement
Form control. Note. Depending upon the environment the page is being viewed, the value property may be read-only for the file upload input type. For the "password" input type, the actual value returned may be masked to prevent unauthorized use. See the INPUT element definition in HTML 4.0.


Method Index

 o blur()
Removes keyboard focus from this element.
 o click()
Simulate a mouse-click.
 o focus()
Gives keyboard focus to this element.
 o getAccept()
A comma-separated list of content types that a server processing this form will handle correctly.
 o getAccessKey()
A single character access key to give access to the form control.
 o getAlign()
Aligns this object (vertically or horizontally) with respect to its surrounding text.
 o getAlt()
Alternate text for user agents not rendering the normal content of this element.
 o getChecked()
Describes whether a radio or check box is checked, when type has the value "Radio" or "Checkbox".
 o getDefaultChecked()
When type has the value "Radio" or "Checkbox", stores the initial value of the checked attribute.
 o getDefaultValue()
Stores the initial control value (i.e., the initial value of value).
 o getDisabled()
The control is unavailable in this context.
 o getForm()
Returns the FORM element containing this control.
 o getMaxLength()
Maximum number of characters for text fields, when type has the value "Text" or "Password".
 o getName()
Form control or object name when submitted with a form.
 o getReadOnly()
This control is read-only.
 o getSize()
Size information.
 o getSrc()
When the type attribute has the value "Image", this attribute specifies the location of the image to be used to decorate the graphical submit button.
 o getTabIndex()
Index that represents the element's position in the tabbing order.
 o getType()
The type of control created.
 o getUseMap()
Use client-side image map.
 o getValue()
The current form control value.
 o select()
Select the contents of the text area.
 o setAccept(String)
 o setAccessKey(String)
 o setAlign(String)
 o setAlt(String)
 o setChecked(boolean)
 o setDefaultChecked(boolean)
 o setDefaultValue(String)
 o setDisabled(boolean)
 o setMaxLength(int)
 o setName(String)
 o setReadOnly(boolean)
 o setSize(String)
 o setSrc(String)
 o setTabIndex(int)
 o setUseMap(String)
 o setValue(String)

Methods

 o getDefaultValue
 public abstract String getDefaultValue()
Stores the initial control value (i.e., the initial value of value).

 o setDefaultValue
 public abstract void setDefaultValue(String defaultValue)
 o getDefaultChecked
 public abstract boolean getDefaultChecked()
When type has the value "Radio" or "Checkbox", stores the initial value of the checked attribute.

 o setDefaultChecked
 public abstract void setDefaultChecked(boolean defaultChecked)
 o getForm
 public abstract HTMLFormElement getForm()
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.

 o getAccept
 public abstract String getAccept()
A comma-separated list of content types that a server processing this form will handle correctly. See the accept attribute definition in HTML 4.0.

 o setAccept
 public abstract void setAccept(String accept)
 o getAccessKey
 public abstract String getAccessKey()
A single character access key to give access to the form control. See the accesskey attribute definition in HTML 4.0.

 o setAccessKey
 public abstract void setAccessKey(String accessKey)
 o getAlign
 public abstract String getAlign()
Aligns this object (vertically or horizontally) with respect to its surrounding text. See the align attribute definition in HTML 4.0. This attribute is deprecated in HTML 4.0.

 o setAlign
 public abstract void setAlign(String align)
 o getAlt
 public abstract String getAlt()
Alternate text for user agents not rendering the normal content of this element. See the alt attribute definition in HTML 4.0.

 o setAlt
 public abstract void setAlt(String alt)
 o getChecked
 public abstract boolean getChecked()
Describes whether a radio or check box is checked, when type has the value "Radio" or "Checkbox". The value is TRUE if explicitly set. Represents the current state of the checkbox or radio button. See the checked attribute definition in HTML 4.0.

 o setChecked
 public abstract void setChecked(boolean checked)
 o getDisabled
 public abstract boolean getDisabled()
The control is unavailable in this context. See the disabled attribute definition in HTML 4.0.

 o setDisabled
 public abstract void setDisabled(boolean disabled)
 o getMaxLength
 public abstract int getMaxLength()
Maximum number of characters for text fields, when type has the value "Text" or "Password". See the maxlength attribute definition in HTML 4.0.

 o setMaxLength
 public abstract void setMaxLength(int maxLength)
 o getName
 public abstract String getName()
Form control or object name when submitted with a form. See the name attribute definition in HTML 4.0.

 o setName
 public abstract void setName(String name)
 o getReadOnly
 public abstract boolean getReadOnly()
This control is read-only. When type has the value "text" or "password" only. See the readonly attribute definition in HTML 4.0.

 o setReadOnly
 public abstract void setReadOnly(boolean readOnly)
 o getSize
 public abstract String getSize()
Size information. The precise meaning is specific to each type of field. See the size attribute definition in HTML 4.0.

 o setSize
 public abstract void setSize(String size)
 o getSrc
 public abstract String getSrc()
When the type attribute has the value "Image", this attribute specifies the location of the image to be used to decorate the graphical submit button. See the src attribute definition in HTML 4.0.

 o setSrc
 public abstract void setSrc(String src)
 o getTabIndex
 public abstract int getTabIndex()
Index that represents the element's position in the tabbing order. See the tabindex attribute definition in HTML 4.0.

 o setTabIndex
 public abstract void setTabIndex(int tabIndex)
 o getType
 public abstract String getType()
The type of control created. See the type attribute definition in HTML 4.0.

 o getUseMap
 public abstract String getUseMap()
Use client-side image map. See the usemap attribute definition in HTML 4.0.

 o setUseMap
 public abstract void setUseMap(String useMap)
 o getValue
 public abstract String getValue()
The current form control value. Used for radio buttons and check boxes. See the value attribute definition in HTML 4.0.

 o setValue
 public abstract void setValue(String value)
 o blur
 public abstract void blur()
Removes keyboard focus from this element.

 o focus
 public abstract void focus()
Gives keyboard focus to this element.

 o select
 public abstract void select()
Select the contents of the text area. For INPUT elements whose type attribute has one of the following values: "Text", "File", or "Password".

 o click
 public abstract void click()
Simulate a mouse-click. For INPUT elements whose type attribute has one of the following values: "Button", "Checkbox", "Radio", "Reset", or "Submit".


All Packages  Class Hierarchy  This Package  Previous  Next  Index