Jenis tautan Properti
Contoh
Kembalikan tipe MIME dari dokumen tertaut:
var x = document.getElementById("myLink").type;
Definisi dan Penggunaan
Properti tipe menyetel atau mengembalikan tipe konten (tipe MIME) dari dokumen tertaut.
Tip: Contoh tipe MIME adalah: "text/css", "text/javascript", "image/gif", dll.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sintaksis
Kembalikan properti tipe:
linkObject.type
Setel properti tipe:
linkObject.type = MIME-type
Nilai properti
Value | Description |
---|---|
MIME-type |
The MIME type of the linked document. Look at IANA MIME types for a complete list of standard MIME types |
Detail Teknis
Nilai Kembali: | Sebuah String, mewakili tipe konten dari dokumen yang ditautkan |
---|
Objek Tautan