Skip to content
Related Articles

Related Articles

HTML | DOM Input Button form Property
  • Difficulty Level : Basic
  • Last Updated : 17 Oct, 2019

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



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() {
            // accessing 'button' id. 
            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
  • Internet Explorer 10.0 +
  • Firefox
  • Opera
  • Safari


My Personal Notes arrow_drop_up
Recommended Articles
Page :