3.2 NS IE TV

<INPUT>

Create a control for a form. A control is an element which the user can use to enter data, like textboxes, radiobuttons and checkboxes. This tag is only valid inside the FORM tag.

ACTION
TV
Use the action attribute to specify the action used when the viewer selects the control. This action overrides the action set in the FORM tag and also immediately sends the value for the control to the server without the values for the rest of the form.

The default value for a control is 0. Use the value attribute for the control to set a different value.

When both the action and submitform attributes are set for the control, the WebTV interface submits the entire form by means of this action. Note that the action attribute can also be used to invoke client functions. However, client functions are not recommended for content developers. These functions are intended for use by WebTV Networks for developing basic WebTV functionality.


ACCEPT
?
This attribute is used with TYPE=FILE to restrict the kinds of files allowed to attach to those matching a comma separated list of MIME content types given with the ACCEPT attribute e.g. ACCEPT=image/* restricts files to images.

ALIGN
3.2 NS
This attribute can be used with TYPE=IMAGE to specify how the image must be aligned. The possible values are the same as the values of the IMG tag.

Value Description
ABSBOTTOM Aligns the bottom of the image with the bottom of the current line.
ABSMIDDLE Aligns the middle of the image with the middle of the current line.
BASELINE Aligns the bottom of the image with the basline of the text in the line. This value does the same as ALIGN=BOTTOM.
BOTTOM Aligns the bottom of the image with the baseline of the text in the line. This value does the same as ALIGN=BASELINE.
LEFT Places the image at the left margin of the page.
MIDDLE Aligns the middle of the image with the baseline of the text.
RIGHT Places the image at the right margin of the page.
TEXTTOP Aligns the top of the image with the top of the text in the line.
TOP Aligns the top of the image with the top of the largest item in the line.


CHECKED
3.2 NS IE
This attribute is used with an input TYPE=RADIO or TYPE=CHECKBOX to indicate the specific control is checked when the page is opened.

MAXLENGTH
3.2 NS IE
This attribute is used with an input TYPE=TEXTor TYPE=PASSWORD to set the maximum number of characters the user can enter in the entry-field.

NAME
3.2 NS IE
Specifies the name of the control. This name will be returned to the processing program on the server.

For controls with TYPE=RADIO this attribute is used to group radio-buttons together. This is done be giving them the same name. The result is that the user can only select one of the radio-buttons in the group.


NOARGS
TV
Use the noargs attribute with the action attribute to prevent arguments from being submitted with the action for the control.

NOHIGHLIGHT
TV
Use the nohighlight attribute to prevent the yellow Highlight rectangle from drawing when the viewer selects the control.

You can use the nohighlight attribute on text entry fields. Since the text entry field, defined by , draws a cursor to indicate that the viewer can type there, it’s not necessary to also indicate the selected field with a yellow Highlight rectangle. The nohighlight attribute can be used to disable the yellow Highlight rectangle in this case.

You can also use the nohighlight attribute if there is only one area on a page that can be selected. In this case, make the selectable area obvious to the viewer with graphics, text, formatting, or sound, since the nohighlight attribute disables the Highlight rectangle.


ONBLUR
Specifies JavaScript code to execute when a text element loses focus. This attribute is valid for TYPE=FILE, PASSWORD, and TEXT.

ONCHANGE
Specifies JavaScript code to execute when a text element loses focus and its value has been modified. This attribute is valid for TYPE=FILE, PASSWORD and TEXT.

ONCLICK
NS IE
JavaScript statement that will be executed when the user clicks on the item. This attribute is valid for TYPE=BUTTON, CHECKBOX, RADIO, RESET and SUBMIT.

ONFOCUS
Specifies JavaScript code to execute when an element gets focus. This attribute is valid for TYPE=FILE, PASSWORD and TEXT.

SUBMITFORM
TV
In version 1.1 of the WebTV HTML interface, use the submitform attribute to submit all form data when the viewer changes the value of a particular control in the form.

When the action attribute is set for a control, the value for the control is sent to the server immediately. If the submitform attribute is not set, only the value for the selected control is submitted. When both the action and submitform attributes are set for the control, the WebTV interface submits the values for the entire form using the action for the control.


SIZE
3.2 NS IE
This attributes determines the number of characters the control is wide. Note that this attribute doesn't set the number of allowed characters, you need the MAXLENGTH to set this. The default is 20 characters.

SRC
3.2 NS IE
Allowed with TYPE=IMAGE, this attribute specifies the url of the image.

TYPE
3.2 NS IE TV

Value Description
BUTTON Creates a button. The action that is triggered by using this button is defined by the ONCLICK attribute.

This value is not supported by the HTML 3.2 Reference Specification.

CHECKBOX Creates a checkbox. This can be used for simple Boolean attributes, or for attributes that can take multiple values at the same time. The latter is represented by several checkbox fields with the same name and a different value attribute. Each checked checkbox generates a separate name/value pair in the submitted data, even if this results in duplicate names.
FILE This provides a means for users to attach a file to the form's contents. For this TYPE the value the user enters is not send to the server but this value is used as the filename of the file that is send instead.

For this input type to function correct you must specify ENCTYPE=multipart/form-data because the data send to the server consists or more than one part.

Further information can be found in RFC 1867.

HIDDEN These fields provide a means for servers to store state information with a form. This will be passed back to the server when the form is submitted, using the name/value pair defined by the corresponding attributes.
This is a work around for the statefulness of HTTP. Another approach is to use HTTP "Cookies".

The need to store information between pages exists because the HTTP protocol is a "stateless" protocol. This means there is no permanent connection between the browser and the server. Each time the browser requests a page, or an element on it, a new connection is made, the data is sent and the connection is closed.

IMAGE Create a graphical submit button rendered by an image rather than a text string. The x and y values of the location clicked are passed to the server: In the submitted data, image fields are included as two name/value pairs. The names are derived by taking the name of the field and appending ".x" for the x value, and ".y" for the y value.
PASSWORD Create a single line text field which will not show the contents of the field but instead the * character.
RADIO Creates a radio button. This can be used for attributes which can take a single value from a set of alternatives. Each radio button field in the group should be given the same name. Radio buttons require an explicit value attribute. Only the checked radio button in the group generates a name/value pair in the submitted data.
RESET Creates a button that users can click to reset form fields to their initial state when the document was first loaded. Reset buttons are never sent as part of the form's contents.
SUBMIT Creates a button that users can click to submit the form's contents to the server. If the name attribute is given then the submit button's name/value pair will be included in the submitted data. You can include several submit buttons in the form.
TEXT Creates a single line text field.

The default type is TEXT.


VALUE
3.2 NS IE
Depending on the TYPE, the value is used in different ways :

Value Description
Boolean controls Specifies the value to be returned when the control is turned on.
Button controls Specifies the text of the button.
Textual/numerical controls Specifies the default value of the control.


WIDTH
TV
Use the width attribute to set the width of the control in pixels. By default, the width fits the text content of the input. If the control displays text, the WebTV interface truncates the text and follows it with an ellipsis if the text can't fit within the width.

 
Source:
<FORM>
Enter your name <INPUT TYPE=TEXT SIZE=20 MAXLENGTH=30>
</FORM>
 
Result:
Enter your name

 
Source:
<FORM>
Select your favorite color
<SELECT>
<OPTION>Red
<OPTION>Orange
<OPTION>Yellow
<OPTION>Green
<OPTION>Purple
<OPTION>Blue
</SELECT>
<INPUT TYPE=BUTTON NAME=ColorButton VALUE="   Push here   "
ONCLICK="ColorButton.value='You pushed me'">
</FORM>
 
Result:
Select your favorite color

 
Source:
<FORM><TABLE BGCOLOR=#D0D0D0 BORDER=2><TR><TD><TABLE>
<TR><TD>Show toolbar as</TD>
 <TD><INPUT TYPE=RADIO NAME=toolbar> Pictures</TD>
 <TD><INPUT TYPE=RADIO NAME=toolbar CHECKED> Text</TD>
 <TD><INPUT TYPE=RADIO NAME=toolbar> Pictures and Text</TD>
</TR>
<TR><TD COLSPAN=4><HR></TD></TR>
<TR><TD>On startup launch</TD>
 <TD><INPUT TYPE=CHECKBOX NAME=launch CHECKED> Browser</TD></TR>
 <TR><TD></TD><TD><INPUT TYPE=CHECKBOX NAME=launch CHECKED> Mail</TD></TR>
 <TR><TD></TD><TD><INPUT TYPE=CHECKBOX NAME=launch> Newsreader</TD></TR>
</TR></TABLE></TD></TR></TABLE>
</FORM>
 
Result:
Show toolbar as Pictures Text Pictures and Text

On startup launch Browser
Mail
Newsreader


Statistics Copyright © 1996, 1997 Rob Schlüter
Last updated 1997/06/27
Email: schluter@knoware.nl