Creates a variety of form input controls.
Members Table
The following table lists the members exposed by the
input
object.
Show:
|
| Attribute | Property | Description |
|---|
| ACCEPT | accept |
Sets or retrieves a comma-separated list of content types. | | ALIGN | align |
Sets or retrieves how the object is aligned with adjacent text. | | ALT | alt |
Sets or retrieves a text alternative to the graphic. | | complete |
Retrieves whether the object is fully loaded. | | constructor |
Returns a references to the constructor of an object. | | DYNSRC | dynsrc |
Sets or retrieves the address of a video clip or VRML world to display in the window. | | HSPACE | hspace |
Sets or retrieves the horizontal margin for the object. | | LOOP | loop |
Sets or retrieves the number of times a sound or video clip will loop when activated. | | LOWSRC | lowsrc |
Sets or retrieves a lower resolution image to display. | | start | start |
Sets or retrieves when a video clip file should begin playing. | | USEMAP | useMap |
Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map. | | VALUE | value |
Sets or retrieves the default or selected value of the control. | | VSPACE | vspace |
Sets or retrieves the vertical margin for the object. |
|
Remarks
The TYPE attribute for the INPUT element is used to specify one of the following form input controls:
This element is an inline element.
This element does not require a closing tag.
Example
This example uses the INPUT element to create different types of input controls.
|
<FORM ACTION="http://intranet/survey" METHOD=POST>
<P>Name</P>
<BR><INPUT NAME="CONTROL1" TYPE=TEXT VALUE="Your Name">
<P>Password</P>
<BR><INPUT TYPE="PASSWORD" NAME="CONTROL2">
<P>Color</P>
<BR><INPUT TYPE="RADIO" NAME="CONTROL3" VALUE="0" CHECKED>Red
<INPUT TYPE="RADIO" NAME="CONTROL3" VALUE="1">Green
<INPUT TYPE="RADIO" NAME="CONTROL3" VALUE="2">Blue
<P>Comments</P>
<BR><INPUT TYPE="TEXT" NAME="CONTROL4" SIZE="20,5" MAXLENGTH="250">
<P><INPUT NAME="CONTROL5" TYPE=CHECKBOX CHECKED>Send receipt</P>
<P><INPUT TYPE="SUBMIT" VALUE="OK"><INPUT TYPE="RESET" VALUE="Reset"></P>
</FORM> |
Standards Information
This object is defined in
HTML 3.2
and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1
.
See Also
button, select, textArea