Hidden : Hidden Object « Form « JavaScript Tutorial

JavaScript Tutorial
1. Language Basics
2. Operators
3. Statement
4. Development
5. Number Data Type
6. String
7. Function
8. Global
9. Math
10. Form
11. Array
12. Date
13. Dialogs
14. Document
15. Event
16. Location
17. Navigator
18. Screen
19. Window
20. History
21. HTML Tags
22. Style
23. DOM Node
24. Drag Drop
25. Object Oriented
26. Regular Expressions
27. XML
28. GUI Components
29. Animation
30. MS JScript
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
JavaScript Tutorial » Form » Hidden Object 
10. 20. 1. 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.

PropertyDescription
formSpecifies the form containing the Hidden object.
nameRefers to the name of Hidden object.
typeRefers to HTML TYPE attribute of Hidden object.
valueRefers 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>

        
10. 20. Hidden Object
10. 20. 1. Hidden
10. 20. 2. Hidden.form
10. 20. 3. Hidden.name
10. 20. 4. Hidden.type
10. 20. 5. Hidden.value
ww___w__.ja___v___a___2___s__._co___m | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.