Bağlantı türü Özellik
Örnek
Bağlantılı belgenin MIME türünü döndürün:
var x = document.getElementById("myLink").type;
Tanım ve Kullanım
type özelliği, bağlantılı belgenin içerik türünü (MIME türü) ayarlar veya döndürür.
İpucu: MIME türlerine örnekler: "text/css", "text/javascript", "image/gif" vb.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
type özelliğini döndürün:
linkObject.type
type özelliğini ayarlayın:
linkObject.type = MIME-type
Mülk değerleri
Value | Description |
---|---|
MIME-type |
The MIME type of the linked document. Look at IANA MIME types for a complete list of standard MIME types |
Teknik detaylar
Geri dönüş değeri: | Bağlantılı belgenin içerik türünü temsil eden bir Dize |
---|
❮ Bağlantı Nesnesi