Hidden Object
The fileupload field (<input type="hidden">) within your form can be accessed and manipulated using
JavaScript via the corresponding Hidden object. To access the field in
JavaScript, use the syntax:
document.myform.hiddenfield //where myform and hiddenfield
are names of your form/element.
document.myform.elements[i] //where i is the position of the hidden field within form
Properties
Properties |
Description |
form |
References the form that contains the
Hidden field. |
name |
Reflects the name of the Hidden field (the name attribute). |
type |
A property available on all form
elements, "type" returns the type of the calling form element, in
this case, "hidden". |
value |
A read/write string that specifies the
value of the Hidden field. |