Tipo di area di testo Proprietà
Esempio
Scopri quale tipo di elemento del modulo è un elemento dell'area di testo:
var x = document.getElementById("myTextarea").type;
Definizione e utilizzo
La proprietà type restituisce quale tipo di elemento del modulo è un'area di testo.
Per un oggetto area di testo questo sarà sempre "textarea".
Supporto del browser
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sintassi
textareaObject.type
Valore di ritorno
Type | Description |
---|---|
String | The type of form element the text area is |
❮ Oggetto Area di testo