Return the MIME-type of the linked document:
The result of x will be:
The type property sets or returns the content type (MIME type) of the linked document.
Tip: Examples of MIME-types are: "text/css", "text/javascript", "image/gif", etc.
The type property is supported in all major browsers.
Return the type property:
Set the type property:
Value | Description |
---|---|
MIME-type |
The MIME type of the linked document. Look at IANA MIME types for a complete list of standard MIME types |
Return Value: | A String, representing the content type of the linked document |
---|