Girdi FileUpload type Özellik
❮ Dosya Yükleme Nesnesini Girin
Örnek
Dosya yükleme düğmesinin hangi tür form öğesi olduğunu öğrenin:
var x = document.getElementById("myFile").type;
Tanım ve Kullanım
type özelliği, dosya yükleme düğmesinin ne tür bir form öğesi olduğunu döndürür.
Bir dosya yükleme düğmesi için bu özellik her zaman "dosya" döndürür.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
fileuploadObject.type
Geri dönüş değeri
Type | Description |
---|---|
String | The type of form element the file upload button is |
❮ Dosya Yükleme Nesnesini Girin