Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | DOM Input Image form Property

  • Last Updated : 14 May, 2021

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. 

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

Hey geek! The constant emerging technologies in the world of web development always keeps the excitement for this subject through the roof. But before you tackle the big projects, we suggest you start by learning the basics. Kickstart your web development journey by learning JS concepts with our JavaScript Course. Now at it's lowest price ever!

Below Example illustrate that how to return the Form Property. 


<!DOCTYPE html>
        HTML DOM Input Image form
<body style="text-align:center;">
    <h1 style="color:green;">
      DOM Input Image form Property
    <button onclick="my_geek()">
        <form id="myGeeks">
            <input id="myImage" type="image" formAction="test.php"
                   alt="Submit" width="48" height="48" formMethod="post"
    <h2 id="Geek_h" style="color:green;"></h2>
        function my_geek() {
            // Return target, alt and height.
            var txt = document.getElementById(
                "Geek_h").innerHTML = txt;


  • Before Clicking On Button: 

  • After Clicking On Button: 

Supported Browsers: The browsers supported by HTML DOM Input Image form Property are listed below: 

  • Googl Chrome 10.0
  • Firefox 4.0
  • Opera 11.0
  • Safari 5.1


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!