Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

HTML | DOM Input Button form Property

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The DOM Input Button form Property in HTML DOM is used for returning the reference to the form containing the input Button field is. It is read only property that returns a form object on success. 



Return Values: It returns a string value which specify the reference of the form containing the Input Button field.

Example: Below program illustrates the use of Input Button form property.


<!DOCTYPE html>
        h1 {
            color: green;
<body style="text-align:center;">
      DOM Input Button form Property
    <form id="myGeeks">
        <!-- Assigning button id -->
        <input type="button"
    <p id="sudo"
        function myGeeks() {
            // Return Input Button form Property
            var g =
              "sudo").innerHTML = g;

Before Clicking On Button: 

After Clicking On Button: 

Supported Browsers: The browsers supported by DOM input Button form property are listed below: 

  • Google Chrome 1 and above
  • Firefox 1 and above
  • Opera 
  • Safari 1 and above
  • Edge 12 and above

My Personal Notes arrow_drop_up
Last Updated : 24 Aug, 2022
Like Article
Save Article
Similar Reads
Related Tutorials