HTML | DOM Input Image type Property Last Updated : 14 Sep, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report 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 <!DOCTYPE html> <html> <head> <title> HTML DOM Input Image type Property </title> </head> <body style="text-align:center;"> <h1 style="color:green;"> GeeksForGeeks </h1> <h2>DOM Input Image Type Property</h2> <button onclick="my_geek()"> <input id="myImage" value="myGeeks" type="image" src= "https://media.geeksforgeeks.org/wp-content/uploads/gfg-40.png" alt="Submit" formaction="#" formtarget="#" formenctype="text/plain" width="48" height="48"> </button> <h2 id="Geek_h" style="color:green;"> </h2> <script> function my_geek() { // Return the Input Image type Property var txt = document.getElementById( "myImage").type; document.getElementById( "Geek_h").innerHTML = txt; } </script> </body> </html> Output: Before Clicking On Button: After Clicking On Button: Supported Browsers: The browsers supported by DOM Input Image type Property are listed below: Google ChromeEdge 12+FirefoxApple SafariOpera Comment More infoAdvertise with us Next Article HTML | DOM Input URL type Property M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-DOM Similar Reads 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 Image form Property 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 cont 1 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 URL type Property The DOM Input URL type Property in HTML DOM is used for returning the Which type of form element the URL field is. This Property will always return "URL".Syntax: urlObject.type Return Value: It returns a string value which represent the type of form element the URL field is. Example: This Example il 1 min read HTML DOM Input Text type Property The Input Text type Property in HTML DOM is used to return the type of form element of the text field. It always returns the text for an Input text field. Syntax:Â textObject.typeReturn Value: It returns a string value that represents the type of form element the input text field is. Below program i 1 min read HTML DOM Image isMap Property The HTML DOM Image isMap Property is used to set or return whether the image is a component of a server-side image map. An image map is a picture with clickable areas. When clicking on a server-side image-map, the press coordinates square measure sent to the server as a URL query string. Note: This 2 min read Like