Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Misc | Q1651 [ previous next ]

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

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?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.