Ο αντικείμενο DOM Input Image του HTML

Το αντικείμενο Input Image

Το αντικείμενο Input Image είναι ένα νέο αντικείμενο του HTML5.

Το αντικείμενο Input Image εκπροσωπεί το στοιχείο HTML <image>.

Επισκεφθείτε το αντικείμενο Input Image

You can access the <image> element by using getElementById():

var x = document.getElementById("myImage");

Hint:You can also traverse the form's elements collection to access the Input Image object.

Creating Input Image Object

You can create an <image> element by using the document.createElement() method:

var x = document.createElement("INPUT");
x.setAttribute("type", "image");

Properties of Input Image Object

Ατριβούτη Description
autocomplete Set or return the autocomplete attribute value of the email field.
alt Set or return the alt attribute value of the input image.
autofocus Set or return whether the input image should automatically focus after the page is loaded.
defaultValue Set or return the default value of the input image.
disabled Set or return whether the input image is disabled.
form Return a reference to the form that contains the input image.
formAction Set or return the formaction attribute value of the input image.
formEnctype Set or return the formenctype attribute value of the input image.
formMethod Set or return the formmethod attribute value of the input image.
formNoValidate Set or return whether form data (form-data) should be validated when submitting the form.
formTarget Set or return the formtarget attribute value of the input image.
height Set or return the height attribute value of the input image.
name Set or return the name attribute value of the input image.
src Set or return the src attribute value of the input image.
type Return the form element type of the input image field.
value Set or return the value attribute of the input image.
breadth Ρύθμιση ή Επιστροφή της τιμής του ατριβούτη width για το input image.

Σταδία και Αιτία

Υποστήριξη των Σταδίων για το Σύνολο Input ImageΑτριβούτηκαιΑιτία.

Σχετικές Σελίδες

Εκμάθηση HTML:Φόρμα HTML

Εγχειρίδιο HTML:Ετικέτα HTML <input>

Εγχειρίδιο HTML:Ατрибούτο τύπου HTML <input>