Objet form
Liste des attributs
<FORM
NAME="formName"
TARGET="windowName"
ACTION="serverURL"
METHOD=GET | POST
ENCTYPE="encodingType" (en format MIME, p. ex:
"application/x-www-form-urlencoded"
[onSubmit="handlerText"]>
</FORM>
Syntaxe
-
formName.propertyName
-
formName.methodName(parameters)
-
forms[index].propertyName
-
forms[index].methodName(parameters)
-
document.forms[index]
-
document.forms.length
Propriétés
-
action reflects the ACTION attribute
-
elements is an array reflecting all the elements in a form
-
encoding reflects the ENCTYPE attribute
-
length reflects the number of elements on a form
-
method reflects the METHOD attribute
-
target reflects the TARGET attribute
-
propriétés du tableau
-
length reflects the number of forms in a document
Méthodes
-
submit
-
close
-
open
-
write
-
writeln
Gestionnaire d'événements
onSubmit