★ wanayoo — archive 1999 http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/INPUT.aspNouvelle recherche | Portail wanayoo
MSDN Online Web Workshop   All Products  |   Support  |   Search  |   microsoft.com Home  
microsoft.com Home
  HOME  |   VOICES  |   LIBRARIES  |   COMMUNITY  |   DOWNLOADS  |   SITE GUIDE  |   SEARCH MSDN
 
Click to return to the DHTML, HTML & CSS home page  
IMG Element | IMG Object     INPUT type=button Element...     DHTML Objects    
Web Workshop  |  DHTML, HTML & CSS

INPUT Element | INPUT Object


Creates a variety of form input controls.

HTML Syntax

<INPUT
    ACCESSKEY=key
    ALIGN=LEFT | CENTER | RIGHT
    ALT=text
    CLASS=classname
    DISABLED
    DYNSRC=/old?u=http%3A%2F%2Fmsdn.microsoft.com%2Fworkshop%2Fauthor%2Fdhtml%2Freference%2Fobjects%2F%3C%2FB&y=1999>url
    ID=value
    LANG=language
    LANGUAGE=JAVASCRIPT | JSCRIPT | VBSCRIPT  | VBS 
    LOWSRC=/old?u=http%3A%2F%2Fmsdn.microsoft.com%2Fworkshop%2Fauthor%2Fdhtml%2Freference%2Fobjects%2F%3C%2FB&y=1999>url
    MAXLENGTH=n
    NAME=name
    READONLY
    SIZE=n
    SRC=/old?u=http%3A%2F%2Fmsdn.microsoft.com%2Fworkshop%2Fauthor%2Fdhtml%2Freference%2Fobjects%2F%3C%2FB&y=1999>url
    STYLE=css1-properties
    TABINDEX=n
    TITLE=text
    TYPE=BUTTON | CHECKBOX | FILE | HIDDEN | IMAGE | PASSWORD | 
        RADIO | RESET | SUBMIT | TEXT
    VALUE=value
    event = script
>

Remarks

The TYPE attribute for the INPUT element is used to specify one of the following form input controls:

button checkbox file
hidden image password
radio reset submit text

The INPUT element controls are inline elements and do not require a closing tag.

Example

This example uses the INPUT element to create different types of input controls.

<FORM ACTION="/old?u=http%3A%2F%2Fintranet%2Fsurvey&y=1999" 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>

See Also

BUTTON, SELECT, TEXTAREA



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.