Input Hidden type eigenschap

Definitie en gebruik

type De eigenschap retourneert het type van het verborgen invoerveld.

Voor verborgen objecten zal dit altijd zijn "hidden".

Example

Find out what type of form element the hidden input field is:

var x = document.getElementById("myInput").type;

Try it yourself

Syntax

hiddenObject.type

Technical details

Return value: String value, the form element type of the hidden input field.

Browser support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support