Girdi Metin türü Özellik
Örnek
Metin alanının ne tür bir form öğesi olduğunu öğrenin:
var x = document.getElementById("myText").type;
Tanım ve Kullanım
type özelliği, bir metin alanının ne tür bir form öğesi olduğunu döndürür.
Bir metin alanı için bu özellik her zaman "metin" döndürür.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
textObject.type
Geri dönüş değeri
Type | Description |
---|---|
String | The type of form element the text field is |
❮ Metin Nesnesi Girin