Get the media type of the object:
The result of x will be:
The type property sets or returns the value of the type attribute of an <object> element.
The type attribute specifies the Internet media type (formerly known as MIME type) of the object.
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Return the type property:
Set the type property:
Value | Description |
---|---|
media_type |
Specifies the Internet media type of the embedded content. Look at IANA Media Types for a complete list of standard media types. |
Return Value: | A String, representing the Internet media type of the embedded content |
---|
HTML reference: HTML <object> type attribute