HTML | DOM Input Hidden form Property
The Input Hidden form property is used to return the reference of the form containing the Input Hidden field. It is read-only Property that returns a form object on success.
Syntax:
hiddenObject.form
Below Program that illustrates the Input Hidden form property.
Example-1:
<!DOCTYPE html> <html> <body> <center> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Input Hidden form Property </h2> <form id="myGeeks"> <input type="hidden" id="GFG"> </form> <button onclick="myGeeks()"> Submit </button> <p id="sudo" style="color:green;font-size:35px;"> </p> <script> function myGeeks() { var x = document.getElementById( "GFG").form.id; document.getElementById( "sudo").innerHTML = x; } </script> </center> </body> </html> |
Output:
Before Clicking On Button:

After Clicking On Button:

Supported Browsers: The browser supported by DOM input Hidden form Property are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Opera
- Safari
Recommended Posts:
- HTML | DOM Input Hidden value Property
- HTML | DOM Input Hidden name Property
- HTML | DOM Input Hidden type Property
- HTML | DOM Input URL form Property
- HTML | DOM Input Date form Property
- HTML | DOM Input Submit form Property
- HTML | DOM Input Radio form Property
- HTML | DOM Input Datetime form Property
- HTML | DOM Input FileUpload form Property
- HTML | DOM Input Image form Property
- HTML | DOM Input Text form Property
- HTML | DOM Input Month form Property
- HTML | DOM Input Week form Property
- HTML | DOM Input Password form Property
- HTML | DOM Input Range form Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : shubham_singh



