Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q1651 Is there any way to detect whether Internet Explorer users have a Flash Plugin?

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>

Feedback on 'Q1651 Is there any way to detect whether Internet Explorer users have a Flash Plugin?'

©2018 Martin Webb