Link type Property
Link Object
Definition and Usage
The type attribute sets or returns the type (MIME type) of the linked document.
Tip: MIME-types examples: "text/css", "text/javascript", "image/gif", etc.
Syntax
Set the type property:
linkObject.type="
MIME-type
"
Return the type property:
linkObject.type
Browser support





All major browsers support the type property.
Example
Example
Display the MIME-type of the linked document:
Try it »
Link Object