INPUT: Η εντολή INPUT Από τις σελίδες που προηγήθηκαν φάνηκε ότι η εντολή INPUT κυριαρχεί με τις πολλές δυνατότητες που έχει. Το αποτέλεσμα που φέρνει εξαρτάται από τις τιμές των παραμέτρων που διαθέτει. Η σύνταξη της είναι απλή:
<FORM ... > <  INPUT  TYPE="..."  παράμετροι  > </FORM>
Οι τιμές που μπορεί να πάρει η TYPE είναι:
TYPE =  TEXT ή CHECKBOX ή RADIO ή PASSWORD ή HIDDEN ή RESET ή SUBMIT.
Επίσης παίρνει και τις τιμές FILE ή IMAGE ή SELECT-MULTIPLE ή SELECT-ONE ή TEXTAREA

Παράμετροι της INPUT

ACCESSKEY=string
Specifies an accelerator for the element.
ALLIGN=ABSBOTTOM ή ABSMIDDLE ή BASELINE ή BOTTOM ή LEFT ή MIDDLE ή RIGHT ή TEXTTOP ή TOP
Specifies the alignment for the control-like element.
CHECKED=TRUE ή FALCE
For check boxes and radio buttons, indicates that they are selected.
DISABLED
Used to disable an element.
CLASS=string
Specifies the class of the tag being defined. This is most often used to associated a sub-classed style sheet with the tag.
ID=string
An SGML identifier used as the target for hypertext links or for naming particular elements in associated style sheets. Valid names to script with are any alphanumeric string that begins with a letter. Valid special characters include underbar "_".
LANG=string
This specifies the language to use. The specifier is an ISO standard language abbreviation.
LANGUAGE=JAVASCRIPT ή JSCRIPT ή VBS ή VBSCRIPT
Specifies the language that the current script is written in. JavaScript is the default for this attribute.
MAXLENGTH=long
Indicates the maximum number of characters that can be entered into a text control.
ΝΑΜΕ=string   
Καθορίζεται το αποκλειστικό όνομα του στοιχείου.
READONLY   
Causes the element's contents to be read only.
SIZE=variant
Specifies the size of the control.
STYLE=string
Specifies an in-line style sheet for the tag.
TABINDEX=integer
Sets the tabindex for the object.
TITLE=string
The Title attribute is used to provide advisory information.
VALUE=string
For textual/numerical controls, specifies the default value of the control. For Boolean controls, specifies the value to be returned when the control is turned on
event=script
Can be one or more of these events:
onafterupdate, onbeforeupdate, onblur, onchange, onclick, ondblclick, ondragstart, onfocus, onhelp, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup, onselect, onselectstart

Syntax Forms, March 2000

Σήμερα είναι

Συμβαίνουν τώρα

Χρηστικά

Members