mimeType Property

Internet Development Index

Retrieves the MIME content-type of the object.

Syntax

HTMLN/A
Scripting[ sMimeType = ] object.mimeType

Possible Values

sMimeTypeString that receives the MIME content-type of the object.

The property is read-only. The property has no default value.

Remarks

MIME is an abbreviation for Multipurpose Internet Mail Extension.

Example

This example uses the mimeType property to retrieve the MIME content-type of the media object.

<HTML XMLNS:t="urn:schemas-microsoft-com:time">
<HEAD>
<TITLE>mimeType Property</TITLE>
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
</HEAD>
<BODY>
<t:video id="m1" src="../../common/samples/author/behaviors/media/movie.avi" />
<BR><BR>
<B>mimeType:</B>
<SPAN id="mimeType1" class="time" dur="1" repeatCount="indefinite"
onrepeat="mimeType1.innerText=m1.mimeType;"></SPAN>
</BODY>
</HTML>
This feature requires Microsoft?Internet Explorer 5.5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Applies To

t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:REF, t:VIDEO

See Also

Introduction to HTML+TIME