Verifying a MIME Type : Mime Type « HTML « JavaScript DHTML






Verifying a MIME Type

<HTML>
<HEAD>
<TITLE>W3C DOM Event Propagation</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function mimeIsReady(mime_type) {
    if (navigator.mimeTypes[mime_type]) {
        if (navigator.mimeTypes[mime_type].enabledPlugin) {
            return true
        }
    }
    return false
}

</SCRIPT>
</HEAD>
<BODY >

</BODY>
</HTML>


           
       








Related examples in the same category

1.Using the mimeTypes Object
2.Verifying Plug-in and MIME Type
3.Show Browser Mime type (Firefox)
4. Properties of the Mimetype Object