Input Hidden form Attribute

Definition and Usage

form The property returns a reference to the form containing the hidden input field.

This property returns the form object on success.

Note:This property is read-only.

Example

Return the id of the form containing the <input type="hidden"> element:

var x = document.getElementById("myInput").form.id;

Δοκιμάστε το προσωπικά

Γλώσσα

hiddenObject.form

Τεχνικά Στοιχεία

Αποτελεσματική τιμή:

Αναφορά στο στοιχείο φόρμας που περιέχει το κρυφό πεδίο εισαγωγής.

Εάν το κρυφό πεδίο εισαγωγής δεν υπάρχει στο έξωλικό, επιστρέφεται null.

Υποστήριξη Περιηγητή

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Υποστήριξη Υποστήριξη Υποστήριξη Υποστήριξη Υποστήριξη