Hidden : Hidden Object : Form JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Form » Hidden Object »

 

Hidden








The Hidden object is created with the HTML tag. Specifying the TYPE parameter of the tag as hidden creates the Hidden object. It is a text object that is suppressed from form display in an HTML form. The Hidden object is primarily used for passing name/value pairs from a form.























Property Description
form Specifies the form containing the Hidden object.
name Refers to the name of Hidden object.
type Refers to HTML TYPE attribute of Hidden object.
value Refers to HTML VALUE attribute of Hidden object.















<html>
    <head>
    <title> Creating hidden objects</title>
    </head>
    <body>
    <form name="form1">
    <input type="hidden" name="hide1" value="Test">
    <P>
    <input type="button" value="Get Hidden Attributes"
         onClick='alert(form1.hide1.name + " " + form1.hide1.type + " " + form1.hide1.value)'>
    </form>
    </body>
    </html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Form
» Hidden Object