please dont rip this site
previous | start | next

INPUT

<INPUT
ALIGN=TOP|MIDDLE|BOTTOM|LEFT|RIGHT
CHECKED
CLASS=type
ID=value
MAXLENGTH=length
NAME=name
NOTAB
onBlur=event
onChange=event
onClick=event
onFocus=event
onSelect=event
SIZE=size
SRC=url
STYLE=css1 properties
TABINDEX=n
TITLE=text
TYPE=TEXT|TEXTAREA|PASSWORD|CHECKBOX| RADIO|SUBMIT|RESET|FILE|HIDDEN| IMAGE|BUTTON
VALUE=value>

Specifies a form control.

ALIGN=TOP|MIDDLE|BOTTOM|LEFT|RIGHT
Aligns text to the form element. The default is TOP.
TOP Surrounding text is aligned to the top of the form element.
MIDDLE Surrounding text is aligned to the middle of the form element.
BOTTOM Surrounding text is aligned to the bottom of the form element.
LEFT Surrounding text is aligned to the left of the form element.
RIGHT Surrounding text is aligned to the right of the form element.
CHECKED
Sets a check box or radio button to "selected" when the form first loads. Applies only to radio buttons and check boxes.
CLASS=type
Indicates the class to which the element belongs.
ID=value
Specifies a unique value for the element over the document.
MAXLENGTH=length
Indicates the maximum number of characters that can be entered into a text control.
NAME=name
Specifies the name of the control.
NOTAB
Specifies that the element does not appear in the tabbing order.
onBlur=event
Specifies an event to occur when the element loses focus.
onChange=event
Specifies an event to occur when the value of the element is changed.
onClick=event
Specifies an event to occur when the mouse is clicked on the element.
onFocus=event
Specifies an event to occur when the cursor focus is on the element.
onSelect=event
Specifies an event to occur when the element is selected.
SIZE=size
Specifies the size of the control (in characters). For TEXTAREA-type controls, both width and height can be specified using this format: "width,height".
SRC=url
Specifies the address of the image to be used. Used when TYPE=IMAGE. I>STYLE=css1 properties
Specifies style information.
TABINDEX=n
Specifies the order of the element in the tabbing sequence.
TITLE=text
Specifies an advisory title.
TYPE=type
Specifies what type of control to use. The default is TEXT.
TEXT Used for a single-line text-entry field. Use in conjunction with the SIZE= and MAXLENGTH= attributes.
TEXTAREA Used for a multiline text-entry field.
PASSWORD The same as the = HREF="slide.htm"#htmlref2_0001000114000d0a>TEXT= attribute, except that text is not displayed as the user enters it.
CHECKBOX The element appears as a check box.
RADIO Used for attributes that accept a single value from a set of alternatives. Each radio button field in the group should be given the same name. Only the selected radio button in the group generates a name/value pair in the submitted data. Radio buttons require an explicit VALUE= attribute.
SUBMIT A button that, when clicked, submits the form. You can use the VALUE= attribute to provide a non-editable label to be displayed on the button. The default label is application-specific. If a SUBMIT button is clicked to submit the form, and that button has a NAME= attribute specified, that button contributes a name/value pair to the submitted data. Otherwise, a SUBMIT button makes no contribution to the submitted data.
RESET A button that, when clicked, resets the form's fields to their specified initial values. The label to be displayed on the button can be specified just as for the SUBMIT button.
FILE Used to insert a file.
HIDDEN No field is presented to the user, but the content of the field is sent with the submitted form. This value can be used to transmit state information about client/server interaction.
IMAGE An image field that you can click, causing the form to be immediately submitted. The coordinates of the selected point are measured in pixel units from the upper-left corner of the image, and are returned (along with the other contents of the form) in two name/value pairs. The x-coordinate is submitted under the name of the field with ".x" appended, and the y-coordinate is submitted under the name of the field with ".y" appended. Any VALUE= attribute is ignored. The image itself is specified by the SRC= attribute, exactly as for the image element.
BUTTON The element appears as a button.
VALUE=value
Specifies the default value of textual/numerical controls or specifies the value to be returned when the Boolean controls are turned on.

Example

<FORM ACTION="http://intranet/survey" METHOD=POST>
<P>Name
<BR><INPUT NAME="CONTROL1" TYPE=TEXT VALUE="Your Name">
<P>Password
<BR><INPUT TYPE="PASSWORD" NAME="CONTROL2">
<P>Color
<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
<BR><INPUT TYPE="TEXTAREA" NAME="CONTROL4" SIZE="20,5" MAXLENGTH="250">
<P><INPUT NAME="CONTROL5" TYPE=CHECKBOX CHECKED>Send receipt
<P><INPUT TYPE="SUBMIT" VALUE="OK"><INPUT TYPE="RESET" VALUE="Reset">
</FORM>


previous | start | next


file: /Techref/language/html/r020/slide42.htm, 14KB, , updated: 2005/8/16 05:43, local time: 2024/12/25 01:05,
TOP NEW HELP FIND: 
18.220.196.68:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://techref.massmind.org/techref/language/html/r020/slide42.htm"> HTML Reference</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to techref.massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .