You are here:  NetStrider » Tutorials » HTMLRef » Commands » OPTION «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <OPTION> Command next

Command Syntax:

<SELECT command parameters>
  <OPTION command parameters>Displayed Option 1
  <OPTION command parameters>Displayed Option 2
  . . .

</SELECT>

The command defines all the available choices in a drop down selectin list when used in conjunction with the <SELECT> statement within a <FORM> command.

See also:  <FORM>, <SELECT>.

Command Parameters:

selected

Indicates which, if any, of the option choices is selected as the default choice.

value="select list name"

Provides a choice value if different from the displayed choice, otherwise the displayed choice becomes the value when selected.

The width of the largest displayed option text determines the width of the selection list drop down selection dialog box.

Example:
Menu of Fruits:<BR> <SELECT name="fruit" size=6> <OPTION value="err">Select One <OPTION value="app">Apples <OPTION value="ban">Bananas <OPTION value="chr">Cherries <OPTION value="grp">Grapes <OPTION value="prs">Pears </SELECT> Yields -
    Menu of Fruits:
When placed within a <FORM> command, produces a selection menu.

Unless the multiple command parameter is used, options are mutually exclusive.

The selection list returns the displayed values for the selected options to the file server unless alternate value parameters are set in the <OPTION> statements.

Return to Section M:R


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz