Hidden Object
CSGNetwork FREE Source Code, Javascript Source, and Code Snippets!
CSGNetwork Custom Search
     Bookmark and Share
Top Free Apps

Right click this window and select "view source" in order to copy the source for this script.

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

Bookmark and Share
Registered® Trademark™ and Copyright© 1973 - CSG, Computer Support Group, Inc. and CSGNetwork.Com All Rights Reserved