JavaScript Kit > JavaScript Reference > Here

Hidden Object

Last updated: June 20th, 2004

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 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.

Reference List

Right column

CopyRight (c) 2018 JavaScript Kit. NO PART may be reproduced without author's permission. Contact Info