HTML | DOM Input Image form Property Last Updated : 07 Sep, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report The HTML DOM Input Image form Property is used for returning the reference to the form containing the input image field. It is a read-only property that returns a form object on success. Syntax: imageObject.form.id Return Values: It returns a string value which specify the reference of the form containing the Input Image field Below Example illustrate that how to return the Form Property. Example: HTML <!DOCTYPE html> <html> <head> <title> HTML DOM Input Image form Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksforGeeks </h1> <h4> DOM Input Image form Property </h4> <button onclick="my_geek()"> <form id="myGeeks"> <input id="myImage" type="image" formAction="test.php" src= "https://media.geeksforgeeks.org/wp-content/uploads/gfg-40.png" alt="Submit" width="48" height="48" formMethod="post" formNoValidate> </form> </button> <h2 id="Geek_h" style="color:green;"></h2> <script> function my_geek() { // Return Input Image form Property var txt = document.getElementById( "myImage").form.id; document.getElementById( "Geek_h").innerHTML = txt; } </script> </body> </html> Output: Before Clicking On Button: After Clicking On Button: Supported Browsers: The browsers supported by HTML DOM Input Image form Property are listed below: Google Chrome Edge 12+Firefox Opera Safari Comment More infoAdvertise with us Next Article HTML DOM Input Image width Property M manaschhabra2 Follow Improve Article Tags : JavaScript Web Technologies HTML-DOM Similar Reads HTML DOM Input Image formTarget Property The HTML DOM Input Image formTarget Property is used to set or return the value of the formTarget of the Input Element having an image field. The Target attribute is used to specify whether the submitted result will open in the current window, a new tab or on a new frame. Syntax: To return the formT 2 min read HTML DOM Input Image name Property The HTML DOM Input Image name Property is used for setting or returning the value of the name attribute of the Input Image. The name Attribute is used to reference the form-data after submitting the form or to reference the element in JavaScript. Syntax: To returns the name Property: imageObject.nam 2 min read HTML | DOM Input Image type Property The Input Image type Property in HTML DOM is used to returning the which type of form element an image field is. Syntax: ImageObject.type Return Value: It returns a string value which represents the type of form element the Image field is. Below Example returns the Image Type Property. Example: HTML 1 min read HTML | DOM Input URL form Property The DOM Input URL form Property is used for returning the reference of the form containing the URL field. It is read-only property and returns a form object on success. Syntax: urlObject.form Return Values: It returns a string value which specify the reference of the form containing the Input URL fi 1 min read HTML DOM Input Image width Property The Input Image width Property In HTML DOM is used to return the value of the width attribute of the <input type="image">. Syntax: To return the width Property.imageObject.widthTo set the width Property.imageObject.width = value; Property Value: It contains the numeric value which specifies th 2 min read HTML | DOM Input Text form Property The DOM Input Text form Property in HTML DOM is used to return the reference of form containing the input Text field. It is a read-only property that returns the form object on success. Syntax: textObject.form Return Values: It returns a string value which specify the reference of the form containin 1 min read Like