You are here: irt.org | FAQ | JavaScript | Misc | Q1651 [ previous next ]
Internet Explorer does not support the mime array in JavaScript. Instead try the following, which may only work from a server and only if the mime type is defined:
<script language="JScript"><!-- var flashSupported = false; document.write('<img name="x" src="x.swf">'); // x.swf is a dummy text file of one byte if (document.x.mimeType.toLowerCase().indexOf('flash') !=-1) flashSupported = true; alert(document.x.mimeType +':'+flashSupported); //--></script>