Link type eigenschap
Definitie en gebruik
type
Eigenschap instellen of teruggeven van het inhoudstype (MIME-type) van het gelinkte document.
Tip:Voorbeelden van MIME-typen zijn: "text/css", "text/javascript", "image/gif" enz.
Zie ook:
HTML Referentiemanual:HTML <link> type attribute
HTML Referentiemanual:HTML <link> tag
Voorbeeld
Teruggeven van het MIME-type van het gelinkte document:
var x = document.getElementById("myLink").type;
Syntax
Teruggeven van het type eigenschap:
linkObject.type
Instellen van het type eigenschap:
linkObject.type = MIME-type
Attribute value
Value | Description |
---|---|
MIME-type |
|
Technical details
Return value: | String value representing the content type of the linked document. |
---|
Browser support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |