You are here: Reference > JavaScript > client-side > browser > properties > suffixes (mimeType)

suffixes property (mimeType)

Browser support:
Returns a string value that contains a comma separated list of possible file extensions for the current MIME type.


You can find the related objects in the Supported by objects section below.
This property is read-only.

Possible values:

String that represents the comma separated list of extensions.
Default: this property has no default value.

Example HTML code 1:

This example illustrates the use of the suffixes property:
    <script type="text/javascript">
        function GetMimeTypes () {
            var message = "";
                // Internet Explorer supports the mimeTypes collection, but it is always empty
            if (navigator.mimeTypes && navigator.mimeTypes.length > 0) {
                var mimes = navigator.mimeTypes;
                for (var i=0; i < mimes.length; i++) {
                    message += "<b>" + mimes[i].type + "</b> : " + mimes[i].suffixes + "<br />";
            else {
                message = "Your browser does not support this example!";

            var info = document.getElementById ("info");
            info.innerHTML = message;
<body onload="GetMimeTypes ()">
    <div id="info" style="width:500px; height:300px; overflow:auto; background-color:#e0d0d0;"></div>
Did you find this example helpful? yes no

Supported by objects:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content