Giriş Sıfırlama tipi Özellik
Örnek
Sıfırla düğmesinin hangi tür form öğesi olduğunu öğrenin:
var x = document.getElementById("myReset").type;
Tanım ve Kullanım
type özelliği, bir sıfırlama düğmesinin ne tür bir form öğesi olduğunu döndürür.
Bir sıfırlama düğmesi nesnesi için bu özellik her zaman "sıfırla" döndürür.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
resetObject.type
Geri dönüş değeri
Type | Description |
---|---|
String | The type of form element the reset button is |
❮ Giriş Sıfırlama Nesnesi